Gx6264ConnectChannel

Purpose

Connects the specified channel to the specified group.

Syntax

Gx6264ConnectChannel(nHandle, nGroup, nChannel, pnStatus)

Parameters

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_A
1 GX6264_GROUP_B
2 GX6264_GROUP_C
3 GX6264_GROUP_D
4 GX6264_GROUP_E
5 GX6264_GROUP_F
6 GX6264_GROUP_G
7 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.

Comments

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.

 

Example

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);

 

See Also

GxSWGetErrorString, Gx6264Initialize, Gx6264Reset, Gx6264ResetGroup.