Gx6264ConnectBus

Purpose

Connects the specified Universal bus with the specified group.

Syntax

Gx6264ConnectBus (nHandle, nBus, nGroup, nMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to the board.
nBus
SHORT
Universal Bus number
0. GX6264_BUS_X0
1. GX6264_BUS_Y0
2. GX6264_BUS_X1
3. GX6264_BUS_Y1
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
nMode
SHORT
Connection mode (see comments):
0. GX6264_CONNECT_ONLY: Connect Only mode
1. GX6264_CONNECT_COMBINED: Connect Combined mode
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

In the Direct Bus mode only the specified group is connected to the specified bus. All other groups are disconnected from the specified bus. In the Combination mode, the other groups currently connected to the same bus remain connected.

 

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 X0 bus to group A in Connect Only mode, and connects the Y1 bus to group D in Combined Bus mode:

 

Gx6264ConnectBus(nHandle, 0, 0, 0, &nStatus);

Gx6264ConnectBus(nHandle, 1, 3, 1, &nStatus);

 

See Also

GxSWGetErrorString, Gx6264Initialize, Gx6264RemoveBus, Gx6264ResetBus