Closes a relay or relay driver for the board handle passed.
Gx6115Close (nHandle, nRelayType, nChannel, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6115 board. |
nRelayType |
SHORT |
Specifies the type of relay 0 or 1:0 for the high current relay,1 for the relay driver. |
nChannel |
SHORT |
Specifies the relay number. Can be 1-15 for the high current relay, 1-3 for the driver relay. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
The Gx6115GetChannel 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 driver 2:
Gx6115Close(nHandle, 0, 1, &nStatus);
Gx6115Close(nHandle, 1, 2, &nStatus);
Gx6115Initialize, Gx6115Open, Gx6115SetChannels, Gx6115GetChannel