Gx6264GetSectionsBus

Purpose

Returns the status of the relay connecting the specified bus to the corresponding bus in the other section of the board.

Syntax

Gx6264GetSectionsBus (nHandle, nBus, pnMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to the board.
nBus
SHORT
Bus number 0-3; X0=0, Y0=1, X1=2, Y1=3.
pnMode
LPSHORT
Returns the bus connect status 0; 0 for disconnect and 1 for connect.
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example gets the state of the relay which connects Y0 bus to Y1 bus.

 

Gx6264GetSectionBus(nHandle, 1, &nBusConnectStatus, pnStatus)

 

See Also

Gx6264ConnectSectionsBus, GX6264RemoveSectionsBus