DioSetPowerConnect

Applies To

GX5055

Purpose

Sets the front-end board power connect relay state

Syntax

DioSetPowerConnect (nHandle, nState, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Returned Handle (session identifier) that can be used to call any other operations of that resource
nState
SHORT
Sets 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.

Prior to connecting the power, the external power supply needs to be turned on with 0V to avoid over-current condition.

Example

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

 

SHORT nStatus;

DioSetPowerConnect(nHandle, DIO_POWER_FROM_FRONT, &nStatus);

 

See Also

DioGetPowerConnect, DioGetErrorString