02-08-2007 02:41 PM
The DAQmx C Reference Help says:
int32 DAQmxReadRaw (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, void *readArray, uInt32 arraySizeInBytes, int32 *sampsRead, int32 *numBytesPerSamp, bool32 *reserved);
Reads raw samples directly from the input lines. There is no scaling, parsing, or separation of the samples. Refer to the specifications for your device to determine the format of the incoming samples.
But I cannot find any mention of the format in the M-Series User Manual or the NI 622x Specifications. Where is it published?
Thanks.
02-09-2007 08:40 PM
Hi,
Thank you for posting to the NI forums. The resolution of the 622x series devices is 16 bits. When you read the raw data, you will be reading the raw bits coming out of the ADC on the device. To view the full resolution of your device, I would recommend using an unsigned integer, and then converting this data to scaled data. There are a couple of good Knowledge Base articles that discuss this issue.
Converting Raw Values of DAQmx Read.vi to Scaled Readings
Is the Unscaled Raw Data from DAQmx Calibrated?
I hope this helps. Post back if you have further questions.
Ed W.
Applications Engineer
National Instruments
02-13-2007 03:13 PM
Thanks, Ed, for the reply.
Your links explain well how to deal with the raw sample values. What I cannot find is how those raw values are arranged within the buffer. For example, are they interleaved or grouped by channel? Are all channels' raw values present in the buffer or only the channels belonging to the task? Are the channel values in the same order as in the task? What is meant by "There is no ... parsing, or separation of the samples."?
Thanks in advance for helping me find the proper documentation.
02-14-2007 06:34 PM
02-15-2007 07:25 AM - edited 02-15-2007 07:25 AM
Thanks, Michael, for the clarification. I'm still curious as to where any of this is documented. NI documentation is usually quite complete, if a little tough to navigate.
Thank you.
Claus
Message Edited by ClausB on 02-15-2007 07:29 AM
02-19-2007 05:47 AM