beautypg.com

Tbkrdtempscan – Measurement Computing TempBook rev.3.0 User Manual

Page 77

background image

TempBook User’s Manual

tbkCommand Reference (Standard API) 9-17

tbkRdTempScan

DLL Function

tbkRdTempScan(uint startChan, uint endChan, uchar tcType, int * temp)

C

tbkRdTempScan(unsigned startChan, unsigned endChan, unsigned tcType, int *
temp);

QuickBASIC

BtbkRdTempScan% (ByVal startChan%, ByVal endChan%, ByVal tcType%, temp%)

Visual Basic

VBtbkRdTempScan% (startChan%, endChan%, tcType%, temp%())

Turbo Pascal

tbkRdTempScan( startChan:word; endChan:word; tcType:word;
temp:DataP):integer;

Parameters

uint startchan

Single channel number (see table at end of chapter for valid values)

uint endChan

Ending channel of the scan group (see table at end of chapter for valid values)

uint tcType

Thermocouple type (see table at end of chapter for valid values)

int *temp

An array where the A/D scan will be placed.

Returns

TerrInvChan

- Invalid Channel

TerrTCE_Type

- Invalid Thermocouple Type

See Also

tbkRdTemp, tbkRdTempN, tbkRdTempScanN, tbkTCSetup, tbkTCConvert,
tbkTCSetupConvert

Program References

TEMPEX1 (all languages)

tbkRdTempScan

is used to take thermocouple readings from analog input channels 'startChan'

through 'endChan'. The readings will be zero corrected, span corrected, and linearized to yield
temperature readings in tenths of a degree Celsius. This function will use software triggering to
immediately trigger and acquire one scan.

If a calibration constant file with the default name "tempbook.cal" is not visible to the calling
program, then no span correction is performed.

tbkSetMode

must be called before this function to configure the TempBook for differential

operation in either unipolar or bipolar mode.