GX5961, GX5964
Returns the power source.
GtDio6xPowerGetSource (nHandle, pnState, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Session identifier:● Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization. |
pnState |
PSHORT |
Used to return the front-end power connect relay state.0. GTDIO6X_POWER_DISCONNECT: Disconnect power. 1. GTDIO6X_POWER_FRONT: Connect to front J7 Power Connector. 2. GTDIO6X_POWER_BACKPLANE: Connect to the backplane for power. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
The pin electronics require the rail voltages (VCC, VEE, and VDD) to be present in order to operate correctly. These rails are connected by way of a relay switch to either the J7 front panel connector or to the backplane when using a special high-powered chassis with the J5 connecter present. When setting the connection state to GTDIO6X_POWER_FRONT or GTDIO6X_POWER_BACKPLANE, the Vmid will be calculated based on what rail voltages are detected. The rail voltages should be present before connecting the power so the Vmid can be calculated correctly.
The following example sets the power connection to the backplane, and returns the power connection settings:
SHORT nStatus;
SHORT nPowerState;
GtDio6xPowerSetSource (nHandle, GTDIO6X_POWER_BACKPLANE, &nStatus);
GtDio6xPowerGetSource (nHandle, &nPowerState, &nStatus);