Closes specified relay in a group.
Gx6062Close (nHandle, nGroup, nRelay, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6062 board. |
nGroup |
SHORT |
Specified group number, group number can be 0 (GX6062_GROUP_FIRST) to 11 (GX6062_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 Gx6062ConnectGroupToExternalCoax function call can be also used to connect the specified group from the External Coax connector.
The Gx6062GetChannel 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;
Gx6062Close (nHandle, 2, 1, &nStatus);
Gx6062Open, Gx6062GetChannel, Gx6062SetGroupRelays, Gx6062GetGroupRelays, Gx6062ConnectGroupToExternalCoax, GxSWGetErrorString