Closes specified relay in a group.
Gx6021Close (nHandle, nGroup, nRelay, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6021 board. |
nGroup |
SHORT |
Specified group number, group number can be 0 (GX6021_GROUP_FIRST) to 3 (GX6021_GROUP_LAST). |
nRelay |
SHORT |
Specifies the Relay numbers in the group as follow:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The Gx6021ConnectGroupToExternalCoax function call can be also used to connect the specified group from the External Coax connector.
The Gx6021GetChannel function can be used to retrieve the current channel state.
|
Caution: 1. Make sure that the switching will not cause a closed loop, which may cause distortions in high frequency signals. 2. 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 group 2 relay 1:
SHORT nStatus;
Gx6021Close (nHandle, 2, 1, &nStatus);
Gx6021Open, Gx6021GetChannel, Gx6021SetGroupRelays, Gx6021GetGroupRelays, Gx6021ConnectGroupToExternalCoax, GxSWGetErrorString