Gx6616Open

Purpose

Opens a relay specified by group, row, and column.

Syntax

Gx6616Open (nHandle, nGroup, nRow, nColumn, pnStatus)

Parameters

Name
Type
Comments
nGroup
SHORT
Group number 0-5. Corresponds to groups A-F.
nRow
SHORT
Row number 0 or 1.
nColumn
SHORT
Column number 0 - 15.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function ensures that a proper delay (one millisecond) is used from the last switching command. This prevents a relay being opened before a previous switching command is complete.

Example

The following example opens relay at group D, row 1, column 0:

 

Gx6616Open(nHandle, 3, 1, 0, &nStatus);

 

See Also

Gx6616Initialize, Gx6616SetRow, Gx6616GetChannel