Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get Physical range from an CWAIChannel?

I've set up the AI channel in MAX(v.3.0.1) to have a mapped sensor range 0-5V. With a physical range 0-35V. After calling GetActualSettings() I get upper & lower limits 0-5. How do I get the physical limits 0-35? I tried (65536*ScaleMultiplier)+Offset and got 5 Which is Upperlimit.
Card is PXI-6031E
0 Kudos
Message 1 of 2
(2,525 Views)
Hi rcsj1,

I believe you can use the "range" function to get the actual physical range of the device. Therefore, "range" will get the physical range and "GetActualSettings" will get the scaled range. The Measurement Studio Reference discusses these methods in better detail. You can find the reference from Start >> Programs >> National Instruments >> Measurement Studio >> Help.

Another way to obtain this information is by using the LabVIEW interface. If you install NI-DAQ support for LabVIEW, another dll is installed called lvdaq.dll. This dll contains a function called "Get_Channel_InformationInterface" which will allow you to get the physical range and the scaled range. Not sure if that helps you though.

Have a good day.

Ron
0 Kudos
Message 2 of 2
(2,525 Views)