Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

scale raw data to volts

Hi
 
I am trying to acquire DC volatge using Daqmx function on VC++.
i am trying to execute the example first as i am new VC++ environment
.
I am trying to run the VC_ContAcq_IntClk.dsw example.
but i am not able to see the result unlike in labview.
 
i see a console  pop up and raw data beign accuired.
 
how to convert the raw data to voltage
 
regards
rags
0 Kudos
Message 1 of 2
(5,632 Views)

I looked over the example you mentioned and it actually doesn't appear to read in raw values.  It uses the DAQmxReadAnalogF64 function, which means that it's actually reading in voltage values.  DAQmxReadRaw is used to read in raw values. 

When you call the DAQmxCreateAIVoltageChan function before it you have the option of setting a parameter for the scale (customScaleName), which in the example you mentioned is set to NULL so these are the actual voltage values.

Is there any particular reason you're using VC++ instead of LabVIEW?  Confirm the values that VC++ reads in with those read in by LabVIEW and let me know if there is still a discrepancy.

Message Edited by Elijah K on 02-25-2007 01:16 PM

Elijah Kerry
NI Director, Software Community
0 Kudos
Message 2 of 2
(5,624 Views)