pipx40_psuGetVoltage

VB

Function

pipx40_psuGetVoltage (ByVal vi As Long, ByVal subUnit As Long, ByRef voltage As Double) As Long

C++

ViStatus

pipx40_psuGetVoltage (ViSession vi, ViUInt32 subUnit, ViPReal64 voltage);

 

Parameter

I/O

Description

vi

in

Instrument handle

subUnit

in

Numeric variable indicating the sub-unit for which information is to be obtained

voltage

out

The sub-unit's output voltage setting

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

Obtains a power supply sub-unit's current output voltage setting.

 

The result is the nominal value to which the output has been set, not necessarily the actual voltage being output (which may be affected by device tolerances, current-limit conditions etc.).

 

This function is also usable with fixed-voltage supplies, returning the nominal output voltage.