Gx1164GetChannelRelays

Purpose

Returns the specified channel resistors relays settings.

Syntax

Gx1164SetChannelRelays (nHandle, nChannel, pucRelays, pnStatus)

Parameters

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.

Comments

The function provides control over the settings of each resistor relay in the channel to be set On or Off.

Example

The following example returns channel 1 resistor relays settings:

 

BYTE ucRelays;

Gx1164GetChannelRelays (nHandle, 1, &ucRelays, &nStatus)

 

See Also

Gx1164SetChannelRelays, Gx1164GetSingleChannelResistance, Gx1164SetDoubleChannelResistance