Run Simulink continuously with NI-DAQ

조회 수: 5 (최근 30일)
cyberdyne
cyberdyne 2011년 4월 12일
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?

답변 (2개)

Arnaud Miege
Arnaud Miege 2011년 4월 12일
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
cyberdyne
cyberdyne 2011년 4월 16일
Ok. Therefore is a scope options. So, without scope, can i say that data flows fully during simulation?
Arnaud Miege
Arnaud Miege 2011년 4월 16일
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.

댓글을 달려면 로그인하십시오.


Kaustubha Govind
Kaustubha Govind 2011년 4월 12일
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.

카테고리

Help CenterFile Exchange에서 Hardware-in-the-Loop Simulation with Simulink Real-Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by