Returns the specified rail source.
Gx1838GetRailSource (nHandle, nRail, pnSource, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1838 board. |
nRail |
SHORT |
Specified rail number as follow:1. GX1838_RAIL_A2. GX1838_RAIL_B3. GX1838_RAIL_C |
pnSource |
PSHORT |
Specified rail source, see comments for details. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Rails sources are as follow:
RAIL_A:
GX1838_SOURCE_OPEN
GX1838_SOURCE_INTERNAL (DAC A only)
GX1838_SOURCE_EXTERNAL (pin 10 on Connector J3).
RAIL_B:
GX1838_SOURCE_OPEN
GX1838_SOURCE_INTERNAL (DAC B only)
GX1838_SOURCE_EXTERNAL (pin 11 on Connector J3).
RAIL_C:
GX1838_SOURCE_OPEN
GX1838_SOURCE_INTERNAL (DAC C only)
GX1838_SOURCE_EXTERNAL (pin 12 on Connector J3).
GX1838_SOURCE_FIXED_LOAD (Fixed load of 500Ohms 1W).
The following example returns the source for rail B:
SHORT nSource, nStatus;
Gx1838GetRailSource (nHandle, RAIL_B, &nSource, &nStatus)
Gx1838SetRailSource, Gx1838SetDacVoltage, Gx1838GetDacVoltage, GxPdoGetErrorString