GX3104, GX3116e
Sets the specified channel’s output relay state.
GxSmuSourceSetOutputState (nHandle, nChannel, nState, pnStatus)
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_4GX3116e: Specifies channel number (0-15) is GX3116_CHANNEL_1 to GX3116_CHANNEL_16 |
nState |
SHORT |
Specified channel’s 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. |
The function controls the specified channel’s output relay. The user can connect and disconnect the channel at any time.
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);
GxSmuSourceSetCurrent, GxSmuSourceSetCurrentLimit, GxSmuSourceSetCurrentClamps, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceGetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceSetVoltage, GxSmuSourceSetVoltageLimit, GxSmuSourceSetVoltageClamps, GxSmuGetErrorString