Gx1164SetChannelRelays

Purpose

Sets the specified channel resistors relays.

Syntax

Gx1164SetChannelRelays (nHandle, nChannel, ucRelays, pnStatus)

Parameters

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.

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 close resistor relays 1-3 in channel 1:

 

Gx1164SetChannelRelays (nHandle, 1, 7, &nStatus)

 

See Also

Gx1164GetChannelRelays, Gx1164GetSingleChannelResistance, Gx1164SetDoubleChannelResistance