Gx6196Open

Purpose

Opens a relay specified by a channel number.

Syntax

Gx6196Open (nHandle, nChannel, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6196 board.
nChannel
SHORT
Specified Relay to open (0-95).
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Each relay (K1to K96) can be opened using this function. Note that the relays marked K1 to K96 are addressed as Channel 0 to 95.

Example

The following example opens relay 95:

 

Gx6196Open(nHandle, 95, &nStatus);

 

See Also

Gx6196GetChannel, Gx6196Close, GxSWGetErrorString