Gx6377RelayClose (nHandle, nRelayType, nChannel, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6377 board. |
nRelayType |
SHORT |
Specifies the type of relay:
|
nChannel |
SHORT |
Specifies the relay number according to the specified the type of relay as follow:
|
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
The Gx6377GetChannel 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 close channel 2 in the high current relays type:
Gx6377RelayClose (nHandle, GX6377_RELAY_TYPE_HIGH_CURRENT, 2, &nStatus);
Gx6377RelayOpen, Gx6377RelayGetChannel, Gx6377RelaySetChannels,