NI USB-6003: Error -200452 when I try to add an analog input channel
Show older comments
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
on 21 Apr 2015
Edited: Lukas Fischer
on 21 Apr 2015
0 votes
Categories
Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!