NI USB-6003: Error -200452 when I try to add an analog input channel

5 views (last 30 days)
Hi,
when I try to connect a NI USB-6003 to Matlab (R2013b 64-bit, Data Acquisition Toolbox v.3.4, OS: Win 7) I get an error -200452.
This is the code I executed and the error I got:
>> s = daq.createSession('ni')
>> s.addAnalogInputChannel('Dev1', 'ai0', 'Voltage')
NI Error -200452:
Specified property is not supported by the device or is not applicable to the task.
Property: DAQmx_AI_Coupling
Channel Name: Dev1/ai0
Task Name: _unnamedTask<1F>
Status Code: -200452
Adding an analog output channel works fine. I've also tried other analog input channels, alas to no avail.
When I tested the analog input channels in NI MAX they worked fine, so I don't think it is a device error.
The only help I found for this error was here , but the only useful suggestion there was that the specific device is not officially supported. However, the USB-6003 is definitely supported.
I'm a bit at a loss here, any help or suggestions what could cause this error would be much appreciated.

Answers (1)

Lukas Fischer
Lukas Fischer on 21 Apr 2015
Edited: Lukas Fischer on 21 Apr 2015
I haven't been able to confirm this yet, but the USB-6003 is only supported from Matlab 2014b onwards and I'm running 2013b. Good chance this is the source of the error, but I need to get hold of an up-to-date version to test.
I think it would be helpful if Mathworks stated more explicitly which versions of Matlab and the data acquisition toolbox support which devices or provided more meaningful error messages.

Community Treasure Hunt

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

Start Hunting!