Gx1164GetChannelResistanceRange

Purpose

Returns the single or double channel resistance range.

Syntax

Gx1164GetChannelResistanceRange (nHandle, nChannel, bDouble, pdMin, pdMax, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1164 board.
nChannel
SHORT
Channel number: 1-8.
bDouble
BOOL
Channel mode: 1 (TRUE) for double, 0 (FALSE) for single.
pdMin
PDOUBLE
Returned the smaller value of the range.
pdMax
PDOUBLE
Returned the highest value of the range.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Use the Gx1164GetChannelResistanceRange to determine the channel range. Typically, the board factory resistor are set to 1-65535 for double channels, 1-255 for single channel 1,3, 5 and 7, and 256-65280 for single channels 2, 4, 6 and 8. Different value can be set upon special order, call Marvin Test Solutions for more details.

Example

The following example determines if channel 1 and 2 are in single mode:

 

Gx1164GetChannelResistanceRange(nHandle, 2, TRUE, &dMin, &dMax, nStatus);

Printf(“Channel 1/2 resistance is %g to %g”, dMin, dMax);

 

See Also

Gx1164SetSingleChannelResistance, Gx1164SetDoubleChannelResistance