Gx1838SetChannelRail

Purpose

Sets the specified channel rail connection.

Syntax

Gx1838SetChannelRail (nHandle, nChannel, nRail, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1838 board.
nChannel
SHORT
Specified channel number 0-7.
nRail
SHORT
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 connect channel two to Rail B:

 

SHORT nRail, nStatus;

Gx1838SetChannelRail(nHandle, 2, RAIL_B, &nStatus);

 

See Also

Gx1838GetChannelRail, Gx1838SetRailSource, Gx1838GetRailSource, GxPdoGetErrorString