Gx6325Open

Purpose

Opens the specified relay.

Syntax

Gx6325Open (nHandle, nChannel, pnStatus)

Parameters

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

Comments

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

Example

The following example closes relay 1 and relay 22:

 

Gx6325Open (nHandle, 1, &nStatus);

Gx6325Open (nHandle, 22, &nStatus);

 

See Also

Gx6325Initialize, GxSWGetErrorString, Gx6325Reset, Gx6325Close, Gx6325SetGroupChannels, Gx6325GetChannel