GX3104, GX3116e
Sets the specified array of channels voltage settings when in constant voltage mode.
GxSmuSourceSetVoltageArray (nHandle, nChannelListArraySize, panChannelListArray, dVoltage, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX3104 or GX3116e board . |
nChannelListArraySize |
SHORT |
Specifies the number of channels in panChannelListArray. If nChannelListArraySize=-1, then panChannelListArray parameter is ignored (can be set to NULL) and settings will be applied to all the channels. |
panChannelListArray |
PSHORT |
Array specifying the channels numbers to be set:GX3104: 0 (GX3104_CHANNEL_1) to 3 GX3104_CHANNEL_4.GX3116e: 0 (GX3116_CHANNEL_1) to 15 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 0 and 2 voltage to +10V and returns the settings:
SHORT nStatus;
DOUBLE dVoltage;
SHORT anChannelListArray [2];
// Fill channel array
anChannelListArray [0] = 0;
anChannelListArray [1] = 2;
GxSmuSourceSetVoltageArray (nHandle, 2, anChannelListArray, 10.0, &nStatus);
GxSmuSourceGetVoltage (nHandle, GX3104_CHANNEL_1, &dVoltage, &nStatus);
GxSmuSourceSetCurrent, GxSmuSourceSetCurrentLimit, GxSmuSourceSetCurrentClamps, GxSmuSourceSetCurrentRange, GxSmuSourceSetMode, GxSmuSourceSetOutputState, GxSmuSourceSetRangeMode, GxSmuSourceGetVoltage, GxSmuSourceSetVoltageLimit, GxSmuGetErrorString