GxSmuSourceGetOutputState

Applies To

GX3104, GX3116e

Purpose

Returns the specified channel’s output relay state.

Syntax

GxSmuSourceGetOutputState (nHandle, nChannel, pnState, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX3104 or GX3116e board.
nChannel
SHORT
GX3104: Specifies the channel number (0-3): GX3104_CHANNEL_1 to GX3104_CHANNEL_4
GX3116e: Specifies channel number (0-15) is GX3116_CHANNEL_1 to GX3116_CHANNEL_16
pnState
PSHORT
Specified array of channels output relay state:
0.      GXSMU_SOURCE_OUTPUT_OFF: the specified channel’s output is disconnected from the connector.
1.    GXSMU_SOURCE_OUTPUT_ON: the specified channel’s output is connected to the connector.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function controls the specified channel’s output relay. The user can connect and disconnect the channel at any time.

Example

The following example connect channel 1 output and returns the output state:

 

SHORT nState, nStatus;

 

GxSmuSourceSetOutputState (nHandle, GX3104_CHANNEL_1, GXSMU_SOURCE_OUTPUT_ON, &nStatus);

GxSmuSourceGetOutputState (nHandle, GX3104_CHANNEL_1, &nState, &nStatus);

 

See Also

GxSmuSourceSetCurrent, GxSmuSourceSetCurrentLimit, GxSmuSourceSetCurrentClamps, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceSetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceSetVoltage, GxSmuSourceSetVoltageLimit, GxSmuGetErrorString