Returns the channel mode: single or double.
Gx1164GetChannelMode (nHandle, nChannel, pbDouble, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1164 board. |
nChannel |
SHORT |
Channel number: 1-8. |
pbDouble |
PBOOL |
Channel mode: 1 (TRUE) for double, 0 (FALSE) for single. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Use the Gx1164GetChannelMode to determine if the channel is set to single mode or double. In Double mode the odd number channel and the consecutive channel numbers are combined to provide a more accurate resistance.
The following example determines if channel 1 and 2 are in single mode:
Gx1164GetChannelMode(nHandle, 2, &bDouble, nStatus);
if (bDouble==0)
printf(“Channel 1 and 2 are in single mode”);
Gx1164GetSingleChannelResistance, Gx1164SetDoubleChannelResistance