Daqcvtrawdataformat – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 161

daqCvtRawDataFormat
Also See: daqAdcSetDataFormat,
daqAdcTransferSetBuffer
Format
daqCvtRawDataFormat(buf, action, lastRetCount, scanCount, chanCount)
Purpose
daqCvtRawDataFormat
converts raw data to a specified format.
Parameter Summary
Parameter Type
Description
buf
PWORD
Pointer to the buffer containing the raw data
action
DaqAdcCvtAction Type of conversion action to perform on the raw data
lastRetCount DWORD
Last value in the retCount parameter returned from the
daqAdcTransferGetStat
function
scanCount DWORD
Length of the raw data buffer in scans
chanCount
DWORD
Number of channels per scan in the raw data buffer
Parameter Values
buf:
a pointer to an array of values from 0 to 65,535.
action:
see table below
lastRetCount:
valid values range from 1 to 4,294,967,295; however, memory limitations may apply
scanCount:
valid values range from 1 to 4,294,967,295; however, memory limitations may apply
chanCount:
valid values range from 1 to 72
Parameter Type Definitions
action-(DaqAdcCvtAction)
Definition
Description
DacaUnpack
Decompresses raw data
DacaRotate
Reformats a circular buffer into a linear buffer
Returns
DerrNoError
No error
Function Usage
For all functions of the form daqCvt..., raw data to be converted must be unsigned
(i.e., the dafUnsigned value must be set using the daqAdcSetScan function).
For T/C and RTD conversion, users of Daq/2000 Series devices* and/or Daq PC Cards must
be sure that the main unit is using ten volt range gains settings, either unipolar (0 V to 10 V)
or bipolar (-5 V to +5 V).
See the “T/C Gains Settings” section in the daqCvtTCConvert function entry for the
appropriate settings.
* Daq/2000 Series devices include DaqBook/2000 Series, DaqScan/2000 Series, DaqLab/2000
Series, and DaqBoard/2000 Series devices.
Programmer’s Manual
908494
Daq API Command Reference 4.3-35