beautypg.com

Daqzerosetup – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 316

background image


daqZeroSetup

Also See: daqZeroConvert,daqZeroSetupConvert, daqAutoZeroCompensate

Format

daqZeroSetup (nscan, zeroPos, readingsPos, nReadings)

Purpose

daqZeroSetup

defines which channels will be zeroed within a scan, the location of the shorted channel, the size

of the scan, and the number of readings to zero.

Parameter Summary

Parameter Type

Description

nscan DWORD

Number of readings in a single scan

zeroPos DWORD

Position of the zero reading within the scan

readingsPos DWORD

Position of the readings to be zeroed within the scan

nReadings DWORD Number of readings immediately following the zero reading that are sampled

at the same gain as the zero reading

Parameter Values

nscan:

valid values range from 1 to 272

zeroPos:

valid values range from 1 to 272

readingsPos:

valid values range from 1 to 272

nReadings:

valid values range from 1 to 270

Returns

DerrZCInvParam

Invalid parameter value

DerrNoError

No error

For more details on error messages refer to the Daq Error Table.

Function Usage

This function does not do the actual conversion. A non-zero return value indicates an invalid parameter error.

Prototypes

C/C++

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

Visual BASIC

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

Program References

None

4.6-38 Daq API Command Reference

908594

Programmer’s

Manual