DioGetPowerConnect

Applies To

GX5055

Purpose

Returns the front-end board power connect relay state

Syntax

DioGetPowerConnect (nHandle, pnState, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Returned Handle (session identifier) that can be used to call any other operations of that resource
pnState
PSHORT
Returns the front-end power relay state.
0. DIO_POWER_DISCONNECT: Disconnect power
1. DIO_POWER_FROM_FRONT: Connect to front J7 Power Connector
2. DIO_POWER_FROM_BACKPLANE: Connect to the backplane for power
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The pin electronics require the rail voltages, (high rail voltage (VCC) and low rail voltage (VEE) 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 DIO_POWER_FROM_FRONT or DIO_POWER_FROM_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.

Example

The following example returns the power to the front panel J7 Connector:

 

SHORT nState, nStatus;

DioGetPowerConnect(nHandle, &nState, &nStatus);

 

See Also

DioSetPowerConnect, DioGetErrorString