NI myDAQ Simulink toolbox
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi, I would like to use NI myDAQ in Simulink but I cannot find it through the Simulink toolbox. Is it any possibility for using it in Simulink. Regards.
댓글 수: 0
채택된 답변
Archita P
2017년 3월 20일
Firstly, make sure that the 'nidaq' legacy interface adaptor is successfully registered. In Simulink data acquisition that uses legacy interface, you can try the below mentioned workaround, if the device is not being detected inside the DAQ blocks. This issue is specific to Data Acquisition with Legacy interface in 32 bit MATLAB.
Run the MATLAB once in elevated Administrative mode in order to register the Data Acquisition Toolbox adaptor:
1. Right click on the MATLAB shortcut or the file MATLAB.exe and select "Run as Administrator". 2. Once MATLAB starts execute the "daqregister" command as normal- >> daqregister('nidaq') 3. Close MATLAB and start it as usual.
After adaptor registration with daqregister('nidaq') as described in the solution above , verify that the device is accessible with the legacy interface: >> hw = daqhwinfo('nidaq') >> hw.InstalledBoardIds >> hw.BoardNames >> hw.ObjectConstructorName
댓글 수: 3
Jan
2017년 3월 21일
[Moved from flag (Note: Flags are thought to point to inappropriate contents)]
Ali Zolfagharian wrote:
That is a comprehensive and very essential answer to apply myDAQ in Simulink
추가 답변 (1개)
Walter Roberson
2017년 3월 20일
You need to install Data Acquisition Toolbox Support Package for National Instruments NI-DAQmx Devices.
참고 항목
카테고리
Help Center 및 File Exchange에서 National Instruments Frame Grabbers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!