Closes a relay specified by group, row, and column.
Gx6616Close (nHandle, nGroup, nRow, nColumn, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6616 board. |
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. |
The function closes the specified relay. The function ensures that a proper delay (one millisecond) is used from the last open command. This prevents a relay being closed before a previous switching command is complete.
|
Caution - The flexibility provided by the switch matrix means that any point could be connected to any other point. Extreme care should be observed when developing the control software to prevent shorts between low-impedance sources (such as power supplies). A typical method to prevent such shorts is to use a resistor in series between the power supplies and the switch matrix if these signals are for measurement purposes only. Before closing a relay, verify that no other low-impedance source is connected to the same Row/Column. |
The following example closes relay at group D row 1 relay 0:
Gx6616Close(nHandle, 3, 1, 0, &nStatus);
Gx6616Initialize, Gx6616Open, Gx6616SetRow, Gx6616GetChannel