Gx6338Open

Purpose

Opens the specified relay.

Syntax

Gx6338Open (nHandle, nChannel, pnStatus)

Parameters

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

 

Comments

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

Example

The following example opens relay 1 and relay 22:

 

Gx6338Open (nHandle, 1, &nStatus);

Gx6338Open (nHandle, 22, &nStatus);

 

See Also

Gx6338Initialize, GxSWGetErrorString, Gx6338Reset, Gx6338Close