04-12-2014 02:51 PM
Hi,
I am going to read an analog input of my USB-6009 DAQ in Matlab. when I check that NI DAQ Matlab returns:
>> a = daqhwinfo
a =
ToolboxName: 'Data Acquisition Toolbox'
ToolboxVersion: '2.18 (R2011a)'
MATLABVersion: '7.12 (R2011a)'
InstalledAdaptors: {3x1 cell}
>> a.InstalledAdaptors
ans =
'nidaq'
'parallel'
'winsound'
But when I am going to add analog channel Matlab returns an error:
s=daq.createSession('ni');
ch=s.addAnalogInputChannel('Dev1',0,'Voltage');
??? Error using ==> DAQ_TEST at 8
There are no CompactDAQ devices available.
In Measurement & Aoutomation the device is known and works. Any suggestion to solve this problem?
12-10-2016 02:02 PM
The only thing to do is clear the matlab history and workspace. To do that just type "clear all" and "clc" (without quotes)on matlab command window and after that run your commands.