Gx1838SetRailSource

Purpose

Sets the specified rail source.

Syntax

Gx1838SetRailSource (nHandle, nRail, nSource,  pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1838 board.
nRail
SHORT
Specified rail number as follow:
0. GX1838_RAIL_A
1. GX1838_RAIL_B
2. GX1838_RAIL_C
nSource
SHORT
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 connect rail B to DAC_B:

 

SHORT nStatus;

Gx1838GetRailSource (nHandle, RAIL_B, INTERNAL, &nStatus)

 

See Also

Gx1838GetRailSource, Gx1838SetDacVoltage, Gx1838GetDacVoltage, GxPdoGetErrorString