11-29-2010 10:20 AM
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.
11-30-2010 11:10 AM
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.
11-30-2010 11:40 AM
Thank you for the response... that was what I was planning to do if I could not figure it out.