beautypg.com

Tbkwtbyte, Tbkwtcntr0, Tbkzeroconvert – Measurement Computing TempBook rev.3.0 User Manual

Page 90

background image

9-30 tbkCommand Reference (Standard API)

TempBook User’s Manual

tbkWtByte

DLL Function

int tbkWtByte(uchar byteVal);

C

tbkWtByte(unsigned char byteVal);

QuickBASIC

BtbkWtByte% (ByVal digOut%)

Visual Basic

VBtbkWtByte% (ByVal digOut%)

Turbo Pascal

tbkWtByte( byteVal:byte ):integer;

Parameters

uchar byteVal

The value to write to the specified port
Valid values: 0 - 255 for 8-bit ports
0-15 for 4-bit ports

Returns

TerrNoError

- No error

See Also

tbkRdByte, tbkWtBit, tbkRdBit

Program References

tbkWtByte

writes a byte to the 8-bit digital output port.

tbkWtCntr0

DLL Function

int tbkWtCntr0(uint cntr0);

C

tbkWtCntr0(unsigned cntr0);

QuickBASIC

BtbkWtCntr0% (ByVal cntr0%)

Visual Basic

VBtbkWtCntr0% (ByVal cntr0%)

Turbo Pascal

tbkWtCntr0( cntr0:word ):integer;

Parameters

uint cntr0

The value to write to the count down register of Counter 0
Valid values: 0 - 65535

Returns

TerrNoError

- No error

See Also

tbkConfCntr0, tbkRdCntr0

Program References

tbkWtCntr0

loads the count down register of Counter 0. See tbkAdcConfCntr0 for various

applications of counter 0.

tbkZeroConvert

DLL Function

tbkZeroConvert(uint *counts, uint scans);

C

tbkZeroConvert(unsigned *counts, unsigned scans);

QuickBASIC

BtbkZeroConvert% (counts%, ByVal scans%)

Visual Basic

VBtbkZeroConvert% (counts%(), ByVal scans%)

Turbo Pascal

tbkZeroConvert(counts:WordP; scans:word):integer;

Parameters

uint *counts

The raw data from one or more scans.

uint scans

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

Returns

TerrZCInvParam

- Invalid parameter value

TerrNoError

- No error

See Also

tbkZeroSetup, tbkZeroSetupConvert, tbkAutoZero

Program References

None

The tbkZeroConvert function compensates one or more scans according the previously called
tbkZeroSetup

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

Software Calibration and Zero Compensation chapter for a complete description of zero
compensation.