pipx40_attenGetInfo
Function |
pipx40_attenGetInfo (ByVal vi As Long, ByVal subUnit As Long, ByRef typeNum As Long, ByRef numSteps As Long, ByRef stepSize As Single) As Long | |
ViStatus |
pipx40_attenGetInfo (ViSession vi, ViUInt32 subUnit, ViPUInt32 typeNum, ViPUInt32 numSteps, ViPReal32 stepSize); |
Parameter |
I/O |
Description |
vi |
in |
Instrument handle |
subUnit |
in |
Numeric variable indicating the sub-unit for which information is to be obtained |
typeNum |
out |
pointer to variable to receive type code |
numSteps |
out |
pointer to variable to receive step count |
stepSize |
out |
pointer to variable to receive step size, in dB |
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 an attenuator sub-unit, as numeric values.
Attenuator sub-unit type codes are:
Driver constant |
typeNum value |
Description |
pipx40_TYPE_ATTEN |
8 |
Programmable RF attenuator |
Remarks
The description obtained by this function is a logical one; a physical description indicating the number of discrete pads in the attenuator can be obtained using pipx40_getSubInfo.