Gx1838GetRailSource

Purpose

Returns the specified rail source.

Syntax

Gx1838GetRailSource (nHandle, nRail, pnSource, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1838 board.
nRail
SHORT
Specified rail number as follow:
1. GX1838_RAIL_A
2. GX1838_RAIL_B
3. GX1838_RAIL_C
pnSource
PSHORT
Specified rail source, see comments for details.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Rails sources are as follow:

RAIL_A:

  1. GX1838_SOURCE_OPEN

  2. GX1838_SOURCE_INTERNAL (DAC A only)

  3. GX1838_SOURCE_EXTERNAL (pin 10 on Connector J3).

RAIL_B:

  1. GX1838_SOURCE_OPEN

  2. GX1838_SOURCE_INTERNAL (DAC B only)

  3. GX1838_SOURCE_EXTERNAL (pin 11 on Connector J3).

RAIL_C:

  1. GX1838_SOURCE_OPEN

  2. GX1838_SOURCE_INTERNAL (DAC C only)

  3. GX1838_SOURCE_EXTERNAL (pin 12 on Connector J3).

  4. GX1838_SOURCE_FIXED_LOAD (Fixed load of 500Ohms 1W).

Example

The following example returns the source for rail B:

 

SHORT nSource, nStatus;

Gx1838GetRailSource (nHandle, RAIL_B, &nSource, &nStatus)

 

See Also

Gx1838SetRailSource, Gx1838SetDacVoltage, Gx1838GetDacVoltage, GxPdoGetErrorString