Returns the specified rail’s source.
Gx3348GetRailSource (nHandle, nRail, pnRailSource, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX3348 board. |
nRail |
SHORT |
Rail number:0. GX3348_RAIL_A: connect to rail A1. GX3348_RAIL_B: connect to rail B2. GX3348_RAIL_C: connect to rail C3. GX3348_GROUND: connect to ground-1 GX3348_RAIL_NONE: no rail is connected. |
pnRailSource |
PSHORT |
Rail source:0. GX3348_RAIL_SOURCE_INTERNAL_DAC: Internal rail dac. All three on-board rails (A tthrough C), have a dedicated DAC that can be set from -20V to +32V.1. GX3348_RAIL_SOURCE_EXTERNAL rails A and C can be connected to an external source via the front J6 68 pin connector,2. GX3348_RAIL_SOURCE_INTERNAL_5V: Rail B can be connected to an on-board 5V source.3. GX3348_RAIL_SOURCE_EXTERNAL_AMPLIFIED: Rail A can be conneted to an external source which will be amplified by a nominal gain of 6.6 and can amplify signals from DC to > 10 KHz. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Rails sources are as follow:
GX3348_RAIL_A:
0. GX3348_RAIL_SOURCE_INTERNAL_DAC: dedicated Rail A dac can be set from -20V to +32V.
1. GX3348_RAIL_SOURCE_EXTERNAL: rail A can be connected to an externla source via the front J6 68 pin connector,
3. GX3348_RAIL_SOURCE_EXTERNAL_AMPLIFIED: rail A can be conneted to an external source which will be amplified by a factor of 3.
GX3348_RAIL_B:
0. GX3348_RAIL_SOURCE_INTERNAL_DAC: dedicated Rail B dac can be set from -20V to +32V.
2. GX3348_RAIL_SOURCE_INTERNAL_5V: Rail B can be connected to an on-board 5V source.
GX3348_RAIL_C:
0. GX3348_RAIL_SOURCE_INTERNAL_DAC: dedicated Rail C dac can be set from -20V to +32V.
1. GX3348_RAIL_SOURCE_EXTERNAL rail C can be connected to an externla source via the front J6 68 pin connector
The following example returns rail A source:
SHORT nRailsource, nStatus;
Gx3348GetRailSource (nHandle, GX3348_RAIL_A, &nRailsource, &nStatus);
See Gx3348SetRailSource API for a cmprehansive C example.
Gx3348SetChannelRail, Gx3348SetDac, Gx3348SetDigitalOutputs, Gx3348SetRailSource, GxPdoGetErrorString