Gx6196Close

Purpose

Closes a relay specified by a channel number.

Syntax

Gx6169Close (nHandle, nChannel, pnStatus)

Parameters

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

Comments

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

Example

The following example closes relay 95:

 

Gx6196Close(nHandle, 95, &nStatus);

 

See Also

Gx6196GetChannel, Gx6196Open, GxSWGetErrorString