Tbksetmux – Measurement Computing TempBook rev.3.0 User Manual
Page 82

9-22 tbkCommand Reference (Standard API)
TempBook User’s Manual
tbkSetMux
DLL Function
int tbkSetMux(uint startChan, uint endChan, uchar gain);
C
tbkSetMux(unsigned startChan, unsigned endChan, unsigned char gain);
QuickBASIC
BtbkSetMux% (ByVal startChan%, ByVal endChan%, ByVal gain%)
Visual Basic
VBtbkSetMux% (startChan%, endChan%, gain%)
Turbo Pascal
tbkSetMux( startChan:word; endChan:word; gain:byte ):integer;
Parameters
uint startChan
The starting channel of the scan group (see table at end of chapter for valid values)
uint endChan
The ending channel of the scan group (see table at end of chapter for valid values)
uchar gain
The gain value for all channels (see table at end of chapter for valid values)
Returns
TerrInvGain
- Invalid gain
TerrIncChan
- Invalid channel
TerrNoError
-No error
See Also
tbkSetScan, tbkGetScan
Program References
tbkSetMux
sets a simple scan sequence of local A/D channels from ‘startChan’ to ‘endChan’ all
with the specified gain value. This provides a simple alternative to tbkSetScan if consecutive
channels need to be acquired.