pipx40_resSetResistance

ViStatus pipx40_resSetResistance (ViSession instrumentHandle, ViUInt32 subunitNumber, ViUInt32 mode, ViReal64 resistance);

Purpose

Set a precision programmable resistor's resistance.
This function is for "Precision" resistor models only.

Parameters

Input
Name Type Description
instrumentHandle ViSession

Instrument handle obtained by the pipx40_init call used to open the card.

subunitNumber ViUInt32

The number of the sub-unit to access.
Valid Values:  must correspond to a programmable resistor
sub-unit of the chosen card that supports
calibrated resistance settings

mode ViUInt32

A value indicating how the given resistance value is to be applied.
Valid codes:
0 = pipx40_RES_MODE_SET
Set resistance to the value specified

resistance ViReal64

The resistance value, in ohms.

Return Value

Name Type Description
status ViStatus

A numeric code indicating the success or failure of the operation.
VI_SUCCESS = Successful operation.
Negative values are error codes and positive values are warnings.
To get a description of an error, pass the error code to pipx40_error_message.

References

Precision Programmable Resistor
Pickering Interfaces PXI VISA
Alphabetical Function Index
Hierarchical Function Index