Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

CreateVoltageRmsChannel

myTask.AIChannels.CreateVoltageRmsChannel(physicalChannelComboBox.Items[i].ToString(), "",

(AITerminalConfiguration)(-1), Convert.ToDouble(minimumValueNumeric.Value),
Convert.ToDouble(maximumValueNumeric.Value), AIVoltageAcrmsUnits.Volts);

 

Get the  following error

P1$$Y([ABT@6US3$J8XW%)6.png
Who can tell me how to fix it,Thanks
0 Kudos
Message 1 of 3
(3,669 Views)

Hi zhangchang,

 

I think you should try using myTask.AIChannels.CreateVoltageChannel instead of myTask.AIChannels.CreateVoltageRmsChannel. The error seems to indicate your device does not support that measurement type.

Daniel Dorroh
National Instruments
0 Kudos
Message 2 of 3
(3,662 Views)

Thanks for your reply.

 

Another question If I use CreateVoltaChannel,How to set the coupling mode?I wont the coupling is AC. thanks!

0 Kudos
Message 3 of 3
(3,655 Views)