Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

System throwing null reference exception when creating voltage task

Hello,
I am trying to read analog data on a 6009 DAQ using c#
However, when I try and create a voltage channel, I get a null reference exception. Can anyone point me in the right direction with this?

The exception happens on:
atask.AIChannels.CreateVoltageChannel(SquibCombo.Text,"", AITerminalConfiguration.Nrse,0,3.5,NationalInstruments.DAQmx.AIVoltageUnits.Volts);
SquibCombo.Text is "Dev2/ai0" at runtime

Thank you
David
0 Kudos
Message 1 of 2
(2,761 Views)
Sorry, managed to post this in the wrong thread.
0 Kudos
Message 2 of 2
(2,760 Views)