beautypg.com

Daqzeroconvert, Daqzerosetup – Measurement Computing TempBook rev.3.0 User Manual

Page 157

background image

TempBook User’s Manual

daqCommand Reference (Enhanced API) 11-33

daqZeroConvert

DLL Function

daqZeroConvert(PWORD counts, DWORD scans);

C

daqZeroConvert(PWORD counts, DWORD scans);

Visual BASIC

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

Delphi

daqZeroConvert(counts:PWORD; scans:DWORD)

Parameters

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, daqZeroSetupConvert, daqZeroDbk19

Program References

None

Used With

All devices

daqZeroConvert

compensates one or more scans according to the previously called

daqZeroSetup

function. This function will modify the array of data passed to it.

daqZeroSetup

DLL Function

daqZeroSetup(DWORD nscan, DWORD zeroPos, DWORD readingsPos, DWORD nReadings);

C

daqZeroSetup(DWORD nscan, DWORD zeroPos, DWORD readingsPos, DWORD nReadings);

Visual BASIC

VBdaqZeroSetup&(ByVal nscan&, ByVal zeroPos&, ByVal readingsPos&, ByVal

nReadings&)

Delphi

daqZeroSetup(nscan:DWORD; zeroPos:DWORD; readingsPos:DWORD; nreadings: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.

Returns

DerrZCInvParam

- Invalid parameter value

DerrNoError

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

See Also

daqZeroConvert, daqZeroSetupConvert, daqZeroDbk19

Program References

None

Used With

All devices

daqZeroSetup

configures the location of the shorted channel and the channels to be zeroed

within a scan, the size of the scan, and the number of readings to zero. However, this function does
not do the actual conversion. A non-zero return value indicates an invalid parameter error.