Returns the specified channel resistors relays settings.
Gx1164SetChannelRelays (nHandle, nChannel, pucRelays, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1164 board. |
nChannel |
SHORT |
Channel number: 1-8. |
pucRelays |
PBYTE |
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 returns channel 1 resistor relays settings:
BYTE ucRelays;
Gx1164GetChannelRelays (nHandle, 1, &ucRelays, &nStatus)
Gx1164SetChannelRelays, Gx1164GetSingleChannelResistance, Gx1164SetDoubleChannelResistance