02-23-2007 12:18 AM
02-25-2007 01:16 PM - edited 02-25-2007 01:16 PM
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