Sets the specified bus operation in a defined mode.
Gx264SetBusMode (nHandle, nBus, nMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to the board. |
nBus |
SHORT |
Universal Bus number0. GX6264_BUS_X01. GX6264_BUS_Y02. GX6264_BUS_X13. GX6264_BUS_Y1 |
nMode |
SHORT |
Specifies bus mode number (see Comments)0. GX6264_BUS_NOT_IN_USE1. GX6264_BUS_DIFFERENTIAL2. GX6264_BUS_SINGLE_ENDED_HI3. GX6264_BUS_SINGLE_ENDED_LO4. GX6264_BUS_SINGLE_ENDED_LO_TO_GROUP_LO |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
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.
|
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 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);