Data formatting functions, Al_demuxdata – Measurement Computing ADLIB WIN User Manual

Page 143

Advertising
background image

Chapter 41 Data Formatting Functions

28-1

28. DATA FORMATTING FUNCTIONS:

The Data Formatting functions provide conversions of RAW data into Voltage. The two functions provide
the means to convert specific range of a given buffer or the entire buffer into engineering units. The driver
uses the current configuration of a device, such as it’s gain and data offset values in the calculation.

28.1 AL_DemuxData

Prototype

C\C++

(16 Bit) ERRNUM AL_DemuxData(LHLD lhld, LPBUFFSTRUCT lpbuffstruct,

float

_far

*

DestBuffer, long lLength);


(32 Bit) ERRNUM AL_DemuxData(LHLD lhld, LPBUFFSTRUCT lpbuffstruct,

float

*

DestBuffer, long lLength);


Visual Basic for Windows

Not

supported

LHLD lhld

handle of the LDSD

LPBUFFSTRUCT lpbuffstruct

input address to the ADLIB buffer

float _far * DestBuffer

destination address to the user buffer

long lLength

length of the destination buffer in samples


The AL_DemuxData function converts the selected ADLIB buffer pointed to by lpbuffstruct to
Engineering voltage units, placing each samples voltage into the destination buffer pointed to by
fpfDestBuffer.


Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lpbuffstruct

points to the ADLIB buffer to demux.


fpfDestBuffer

points to the destination buffer.


lLength

specifies the length in samples of the destination buffer.


Returns:
On success ERRNUM is set to 1, otherwise ERRNUM contains the last error code that occurred during the
call.

Related Functions:
NONE

Supported Logical Device Subsystems:
Pci55xx Series: ADC0

Advertising