beautypg.com

Daqzerosetupconvert – Measurement Computing TempBook rev.3.0 User Manual

Page 158

background image

11-34 daqCommand Reference (Enhanced API)

TempBook User’s Manual

daqZeroSetupConvert

DLL Function

daqZeroSetupConvert(DWORD nscan, DWORD zeroPos, DWORD readingsPos, DWORD

nReadings, PWORD counts, DWORD scans);

C

daqZeroSetupConvert(DWORD nscan, DWORD zeroPos, DWORD readingsPos, DWORD

nReadings, PWORD counts, DWORD scans);

Visual BASIC

VBdaqZeroSetupConvert&(ByVal nscan&, ByVal zeroPos&, ByVal readingsPos&, ByVal

nReadings&, counts%(), ByVal scans&)

Delphi

daqZeroSetupConvert(nscan:DWORD; zeroPos:DWORD; readingsPos:DWORD;

nreadings:DWORD; counts:PWORD; scans:DWORD)

Parameters

nscan

The number of readings in a single scan.

zeroPos

The position of the zero reading within the scan

readingsPos

The position of the readings to be zeroed within the scan.

nReadings

The number of readings immediately following the zero reading that are sampled at the same gain as the

zero reading.

counts

The raw data from one or more scans.

scans

The number of scans of raw data in the counts array.

Returns

DerrZCInvParam

- Invalid parameter value

DerrNoError

- No error (also, refer to API Error Codes on page 11-39)

See Also

daqZeroSetup, daqZeroConvert, daqZeroDbk19

Program References

None

Used With

All devices

daqZeroSetupConvert

performs both the setup and convert steps with one call. This is useful

when the zero compensation needs to be performed multiple times because data was read from
channels at different gains or from different boards.