Measurement-computing Data Acquisition Systems rev.10.4 Manual de usuario Pagina 161

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 366
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 160
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
Vista de pagina 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 365 366

Comentarios a estos manuales

Sin comentarios