Run Simulink continuously with NI-DAQ

Hi,
I need to run the acquisition by DAQ continuously with external analog input.
I tried with Analog Input block from Data Acquisition Toolbox (it finds DAQ automatically and allows to set Sample rate, channels, etc...), but at stop time, obviously, acquisition turns off.
In Real-time windows target (analog input block), if i check among Data Acquisition Board there's not my DAQ (NI-6020E).
How can i make it acquire signals by DAQ?

Respuestas (2)

Arnaud Miege
Arnaud Miege el 12 de Abr. de 2011

1 voto

If the Data Acquistion Toolbox is fast enough for you, you can set the stop time to Inf, and it'll keep going until you manually stop it.
HTH,
Arnaud

4 comentarios

cyberdyne
cyberdyne el 15 de Abr. de 2011
I tried that, but in the scope there is one part of total time-signal. For example, with 100 sec, after stop it there are only few seconds of signal.
Arnaud Miege
Arnaud Miege el 15 de Abr. de 2011
It's probably because you haven't removed the default setting of limiting the data points to the last 5,000. See this answer on the same topic:
http://www.mathworks.com/matlabcentral/answers/3174-simscape-full-wave-bridge-rectifier-demo-simulation-time
cyberdyne
cyberdyne el 16 de Abr. de 2011
Ok. Therefore is a scope options. So, without scope, can i say that data flows fully during simulation?
Arnaud Miege
Arnaud Miege el 16 de Abr. de 2011
Yes, it should do, unless you run out of memory or the buffer gets full. I imagine that the data coming from the DAQ card fills up a buffer which gets read by the software.

Iniciar sesión para comentar.

Kaustubha Govind
Kaustubha Govind el 12 de Abr. de 2011

0 votos

For use with Real-Time Windows Target, you can only use boards that are in the Supported Hardware List.
If you don't see your device here, you can submit an enhancement request with Tech Support so your board can be considered for support in a future version of the software.

Categorías

Más información sobre Real-Time Deployment and Code Generation en Centro de ayuda y File Exchange.

Preguntada:

el 12 de Abr. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by