GX3104, GX3116e
Return the specified channel’s voltage limit settings when in constant voltage mode.
GxSmuSourceGetVoltage (nHandle, nChannel, pdVoltage, 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. |
pdVoltage |
PDOUBLE |
Returns the specified channel’s voltage settings when in constant voltage mode.GX3104: Voltage range is -20.0V to +20.0V.GX3116e: 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 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, GxSmuSourceSetVoltage, GxSmuSourceSetVoltageLimit, GxSmuGetErrorString