pipx40_psuSetVoltage
Function |
pipx40_psuSetVoltage (ByVal vi As Long, ByVal subUnit As Long, ByVal voltage As Double) As Long | |
ViStatus |
pipx40_psuSetVoltage (ViSession vi, ViUInt32 subUnit, ViReal64 voltage); |
Parameter |
I/O |
Description |
vi |
in |
Instrument handle |
subUnit |
in |
Numeric variable indicating in which sub-unit actions will take place |
voltage |
in |
The output voltage value to set |
Return Value
0 = Successful operation. Negative values are error codes and positive values are warnings. To get a description of the error, pass the error code to pipx40_error_message.
Description
Sets a power supply sub-unit's output voltage.
The voltage value specified is rounded to the precision of the supply's DAC. The actual voltage setting can be obtained using pipx40_psuGetVoltage.
This function is usable only with sub-units having the capability pipx40_PSU_CAP_PROG_VOLTAGE - see pipx40_psuGetInfo.