Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Equivalent function of DAQ_VScale in Daqmx

Hi
 
 
I would like to know the equivqlent function of DAQ_VScale of traditional Daq
in Daqmx.
 
My application is to measure DC volatge.
My DAQmxReadAnalogF64() function is acquiring but,
i am getting the data in the raw format.
 
In the Daqmx  series, how is the scaling or transform data to voltage
is taken care.
 
or
 
do i get the voltage directly from the DAQmxReadAnalogF64() function.
 
do let me know
 
regards
rags
 
0 Kudos
Message 1 of 3
(5,990 Views)
 

Hello Rags,

The value returned by your analog input (AI) function (such as AI_Read) is an array of integers that represents the analog to digital (A/D) conversion of your data. The DAQ_VScale and AI_VScale functions convert the integer values to an actual voltage reading (LabVIEW does the conversion automatically).

If you look at page B-8 of the NI-DAQ Function Reference Manual, you will see that the formula is listed there. What you could do is read the raw data using DAQmx and then just apply that formula to your readings. In DAQmx the scaling is automatically taken care of for you. Are you sure you are using the DAQmxReadAnalogF64 function and not the DAQmxReadAnalogScalarF64 function?

 

Best Regards,

Raajit L

Raajit L
National Instruments
Message 2 of 3
(5,968 Views)
Hi Raajit L
 
Thank you for the reply.
i am using DAQmxReadAnalogF64 function , a slight change
and i am able to acquire the voltage now, as you  have told the functions returns the voltage
 
regards
rags
0 Kudos
Message 3 of 3
(5,965 Views)