Closes the specified relay.
Gx6325Close (nHandle, nChannel, pnStatus)
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. |
The Gx6325GetChannel function can be used to retrieve the current channel state.
|
Caution - When closing a relay, verify that all other relays on the same circuit that may cause a short are disconnected (a delay may be required between switching commands). Low Impedance sources such as power supplies may cause irreversible damage to this product when shorted to other signals. |
The following example closes relay 1 and relay 22:
Gx6325Close (nHandle, 1, &nStatus);
Gx6325Close (nHandle, 22, &nStatus);
Gx6325Initialize, Gx6325Open, Gx6325SetGroupChannels, Gx6325GetChanel