ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

CreateVoltageRmsChannel

I am using the CreateVoltageRmsChannel method to measure a RMS voltage on a usb-6343 analog channel (differential 6/14).  When this code executes, I receive the following error:

 

     Error -200341

     "Selected physical channel does not support the measurement type required by the virtual channel you are creating"

Here is the line of code (VB .NET) that generates the error:

     myTask.AIChannels.CreateVoltageRmsChannel("Dev1/ai6", "ai6", AITerminalConfiguration.Differential, -10, 10, AIVoltageAcrmsUnits.Volts)

I have tried other channels, but I get the same results.  Is RMS voltage measurement not supported by this device?  Any ideas?

Thanks.

0 Kudos
Message 1 of 3
(3,437 Views)

Hi parksma,

 

The CreateVoltageRmsChannel method only works with NI ELVIS. To get an RMS measurement with your hardware, create a regular voltage task using CreateVoltageChannel, take the output from this task and run it through an RMS function.

 

Steven K.

Steven K.
National Instruments
Software Engineer
0 Kudos
Message 2 of 3
(3,421 Views)

Thank you for the response... that was what I was planning to do if I could not figure it out.

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