Data Acquisition Toolbox doesn't work with Simulink
5 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am using the NI 9188 Chassis with different Modules for IO purpose. It works properly with Matlab and the Data Acquisition Toolbox, that means things like
myDAQ = daq.createSession('ni');
myDAQ.addAnalogInputChannel('cDAQ9188-AI' , 'ai0' , 'Voltage');
myDAQ.DurationInSeconds = measurement_time;
myDAQ.Rate = measurement_rate;
myDAQ.startForeground();
are working fine. But when I try the In- and Output Blocks within Simulink, the Blocks only say: Device: none, and I'm not able to configure anything.
I am using Windows XP with NIDAQmx Driver and Matlab 2012a. Things like daq.getVencors oder daq.getDevices are showing up the correct hardware.
What I found out is, that my Hardware is only able to deal with the session base interface. Isn't it supportet with Simulink?
Thanks for any efforts in advance.
0 件のコメント
採用された回答
Pedro Villena
2012 年 10 月 29 日
編集済み: Pedro Villena
2012 年 11 月 12 日
If you use Real-Time Windows Target Blockset, check if your hardware is in the list of supported hardware.
If you use xPC Target Blockset, check if your hardware is in the list of supported hardware.
Yes, Data Acquisition Toolbox provides blocks that are only available using the Legacy interface and the 32-bit version of MATLAB.
2 件のコメント
その他の回答 (2 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!