Gx264SetBusMode

Purpose

Sets the specified bus operation in a defined mode.

Syntax

Gx264SetBusMode (nHandle, nBus, 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
nMode
SHORT
Specifies bus mode number (see Comments)
0. GX6264_BUS_NOT_IN_USE
1. GX6264_BUS_DIFFERENTIAL
2. GX6264_BUS_SINGLE_ENDED_HI
3. GX6264_BUS_SINGLE_ENDED_LO
4. GX6264_BUS_SINGLE_ENDED_LO_TO_GROUP_LO
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Comments

The nMode can be:

0.   GX6264_BUS_NOT_IN_USE: the bus is disconnected from all other buses and groups.

1.      GX6264_BUS_DIFFERENTIAL: The high and low inputs of any group can be connected to corresponding high and low of the specified bus.

2.      GX6264_BUS_SINGLE_ENDED_HI: The high rail of the Universal Bus X0, X1, Y0, Y1 connects to the high rail of the connected group.

3.      GX6264_BUS_SINGLE_ENDED_LO: The high rail of the Universal Bus X0, X1, Y0, Y1 connects to the low rail of the connected group.

4.      GX6264_BUS_SINGLE_ENDED_LO_TO_GROUP_LO: The low rail of the Universal Bus X0, X1, Y0, Y1 connects to the low rail of the connected group.

 

Warning

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 sets the X0 bus in Differential Mode and Y0 bus in Single Ended Lo mode:

 

Gx6264SetBusMode(nHandle, GX6264_BUS_X0, GX6264_BUS_DIFFERENTIAL, &nStatus);

Gx6264SetBusMode(nHandle, GX6264_BUS_Y0, GX6264_BUS_SINGLE_ENDED_LO, &nStatus);

 

See Also

GxWGetErrorString, Gx264GetBusMode, Gx264Initialize.