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