Analogue channel issue with MYDAQ

Using:
AI = daq.createSession('ni') % Creating session with DAQ device
ch1 = AI.addAnalogInputChannel('myDAQ1','ai0','Voltage') % Settnig up the analg channels to be used, and making him single ended
ch2 = AI.addAnalogInputChannel('myDAQ1','ai1','Voltage')
ch3 = AI.addAnalogInputChannel('myDAQ1','ai2','Voltage')
ch4 = AI.addAnalogInputChannel('myDAQ1','ai3','Voltage')
I am getting this error message:
??? The requested subsystem 'AnalogInput' does not exist on this device.
now i know for a fact that MYDAQs have 2 analogue channels and it is finding the device but not the subsystem? anyone got a solution for this?
Running 64Bit windows and R2011a Matlab
Regards
Stu

2 Comments

What kind of NI board is it?
Its an NI myDAQ

Sign in to comment.

Categories

Asked:

on 27 Jan 2013

Community Treasure Hunt

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

Start Hunting!