Gx6021Open (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 Gx6021DisconnectGroupToExternalCoax function call can be also used to disconnect the specified group from the External Coax connector.
The Gx6021GetChannel function can be used to retrieve the current channel state.
The following example opens group 2 relay 1:
SHORT nStatus;
Gx6021Open (nHandle, 2, 1, &nStatus);
Gx6021Close, Gx6021SetGroupRelays, Gx6021GetGroupRelays, GxSWGetErrorString