GX3104, GX3116e
Sets the specified channel’s voltage settings when in constant voltage mode.
GxSmuSourceSetVoltage (nHandle, nChannel, dVoltage, 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 |
dVoltage |
DOUBLE |
GX3104:Sets the specified channel’s voltage settings when in constant voltage mode. Voltage range is -20.0V to +20.0V.GX3116e:Sets the specified channel’s voltage settings when in constant voltage mode. Voltage range is -2.0V to +10.5V . |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function sets the specified channel’s voltage settings when in constant voltage mode. The voltage range is -20.0V to +20.0V.
The following example sets channel 1 voltage to +10V and returns the settings:
SHORT nStatus;
DOUBLE dVoltage;
GxSmuSourceSetVoltage (nHandle, GX3104_CHANNEL_1, 10.0, &nStatus);
GxSmuSourceGetVoltage (nHandle, GX3104_CHANNEL_1, &dVoltage, &nStatus);
GxSmuSourceSetCurrent, GxSmuSourceSetCurrentLimit, GxSmuSourceSetCurrentClamps, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceSetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceGetVoltage, GxSmuSourceSetVoltageLimit, GxSmuSourceSetVoltageClamps, GxSmuGetErrorString