DAQ NI USB 6008 in Matlab R2013a
1 回表示 (過去 30 日間)
古いコメントを表示
Greatings Thanks for reading this. I am using Windows 7. Matlab R2013a and the device DAQ NI USB 6008 with latest drivers.
When a run the code to read the input from the device, e find the following error :
Error using analoginput (line 46) The DAQ Legacy Interface is not supported on this platform. For more information on choosing between DAQ Legacy Interface and Session-Based Interface, see the documentation on choosing the right interface.
To learn about using data acquisition devices on the win64 platform, see the documentation on the session-based interface.
Error in script_daq (line 28) AI = analoginput('nidaq','Dev2');
The code is the following :
The code for getting the information is : AI = analoginput('nidaq','Dev2');
addchannel(AI,0); set(AI,'SampleRate',5000) set(AI,'SamplesPerTrigger',100) start(AI) data = getdata(AI); plot(data) xlabel('Amostras') ylabel('Sinal (Volts)') delete(AI) clear AI
Do i need to downgrade de version of the matlab to work with this device ?
I will need the device to input and output values from the NI USB 6008 connected to a water tank system.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Digital Input and Output についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!