Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

There are no CompactDAQ devices available.

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?

 

 

0 Kudos
Message 1 of 2
(3,870 Views)

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.

0 Kudos
Message 2 of 2
(2,452 Views)