Sets the specified channel resistors relays.
Gx1164SetChannelRelays (nHandle, nChannel, ucRelays, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1164 board. |
nChannel |
SHORT |
Channel number: 1-8. |
ucRelays |
BYTE |
Channel resistors relays (1-8), each bit represents a relay state. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function provides control over the settings of each resistor relay in the channel to be set On or Off.
The following example close resistor relays 1-3 in channel 1:
Gx1164SetChannelRelays (nHandle, 1, 7, &nStatus)
Gx1164GetChannelRelays, Gx1164GetSingleChannelResistance, Gx1164SetDoubleChannelResistance