Gx1838GetChannelRail

Purpose

Returns the specified channel rail connection.

Syntax

Gx1838GetChannelRail (nHandle, nChannel, pnRail, pnStatus)

Parameters

Name
Type
Description
NHandle
SHORT
Handle to a GX1838 board.
nChannel
SHORT
Specified channel number 0-7.
PnRail
PSHORT
Returned Rail connections are as follow:
0. GX1838_RAIL_NONE
1. GX1838_RAIL_A
2. GX1838_RAIL_B
3. GX1838_RAIL_C
PnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns the rail connection for channel two:

 

SHORT nRail, nStatus;

Gx1838GetChannelRail(nHandle, 2, &nRail, &nStatus);

 

See Also

Gx1838SetChannelRail, Gx1838SetRailSource, Gx1838GetRailSource, GxPdoGetErrorString