Gx6125Open

Purpose

Opens the specified relay.

Syntax

Gx6125Open (nHandle, nChannel, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6125 board.
nChannel
SHORT
Specifies the relay number. Can be 1 to 25.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The Gx6125GetChannel function can be used to retrieve the current channel state.

Example

The following example opens relay 1 and relay 22:

 

Gx6125Open (nHandle, 1, &nStatus);

Gx6125Open (nHandle, 22, &nStatus);

 

See Also

Gx6125Intialize, Gx6125Reset, Gx6125Close, Gx6125SetChannels, Gx6125GetChannel, GxSWGetErrorString