Returns the specified channel rail connection.
Gx1838GetChannelRail (nHandle, nChannel, pnRail, pnStatus)
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_NONE1. GX1838_RAIL_A2. GX1838_RAIL_B3. GX1838_RAIL_C |
PnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example returns the rail connection for channel two:
SHORT nRail, nStatus;
Gx1838GetChannelRail(nHandle, 2, &nRail, &nStatus);
Gx1838SetChannelRail, Gx1838SetRailSource, Gx1838GetRailSource, GxPdoGetErrorString