Connects the specified channel to the specified group.
Gx6264ConnectChannel(nHandle, nGroup, nChannel, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to the board. |
nGroup |
SHORT |
Group number 0-7. Corresponds to groups A-H as follow:0 GX6264_GROUP_A1 GX6264_GROUP_B2 GX6264_GROUP_C3 GX6264_GROUP_D4 GX6264_GROUP_E5 GX6264_GROUP_F6 GX6264_GROUP_G7 GX6264_GROUP_H |
nChannel |
SHORT |
Specifies a channel number in the group: 0-7 |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
Since each group is a Multiplexer, only one channel can be connected to a group. Connecting a channel to a group will remove the previous channel connections to the group. However, Universal bus connections will remain unchanged.
|
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 connects channel 1 to group A and channel 16 to group B:
Gx6264ConnectChannel(nHandle, 1, 8, &nStatus);
Gx6264ConnectChannel(nHandle, 2, 16, &nStatus);
GxSWGetErrorString, Gx6264Initialize, Gx6264Reset, Gx6264ResetGroup.