NI myDAQ Simulink toolbox

9 Ansichten (letzte 30 Tage)
Ali Zolfagharian
Ali Zolfagharian am 16 Mär. 2017
Kommentiert: Jan am 21 Mär. 2017
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.

Akzeptierte Antwort

Archita P
Archita P am 20 Mär. 2017
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 Kommentare
Ali Zolfagharian
Ali Zolfagharian am 21 Mär. 2017
Bearbeitet: Ali Zolfagharian am 21 Mär. 2017
Thanks for your responses. The daq is registered since I received 'mwnidaq.dll' successfully registered. Yet I can find the myDAQ ID in Simulink block!
Jan
Jan am 21 Mär. 2017
[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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 20 Mär. 2017
You need to install Data Acquisition Toolbox Support Package for National Instruments NI-DAQmx Devices.
  1 Kommentar
Ali Zolfagharian
Ali Zolfagharian am 21 Mär. 2017
Thanks for your response. The daq is registered since I received 'mwnidaq.dll' successfully registered. Yet I can find the myDAQ ID in Simulink block!

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by