pipx40_psuGetType

VB

Function

pipx40_psuGetType (ByVal vi As Long, ByVal subUnit As Long, ByVal subType As String) As Long

C++

ViStatus

pipx40_psuGetType (ViSession vi, ViUInt32 subUnit, ViString subType);

 

Parameter

I/O

Description

vi

in

Instrument handle

subUnit

in

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

subType

out

Character string to receive the result

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 type description of a power supply sub-unit, as a text string.

subType string

Description

PSUDC(<voltage rating>,<current rating>)

Power supply, DC

Visual Basic Note

The result is a C-style string, terminated by an ASCII null character. It can be converted to a Visual Basic string by counting the number of characters upto but excluding the terminating null, then performing:

VBstring = LEFT$(subType, character_count).