Connects the Internal Reference to the Calibration Pin / Measurement Channel in preparation for adjustment. Refer to the calibration procedure for the device you are calibrating for detailed instructions on the appropriate use of this function. This function can only be called from an external calibration session.

Syntax

ViStatus _VI_FUNC niDCPower_ConnectInternalReference(ViSession vi, ViInt32 internalReference)

Remarks

Note

This function is not supported on all devices. Refer to Supported Functions by Device for more information about supported devices.

Parameters

NameDirectionTypeDescription
vi[in]ViSession

Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function.

internalReference[in]ViInt32

Specifies the internal reference to be connected to the calibration pin / measurement channel.

Defined Values:

Name

Value

Description

NIDCPOWER_VAL_INTERNAL_REFERENCE_5V

1054 (0x41e)

5 V internal reference.

NIDCPOWER_VAL_INTERNAL_REFERENCE_100KOHM

1055 (0x41f)

100 kohms internal reference.

NIDCPOWER_VAL_INTERNAL_REFERENCE_GROUND

1056 (0x420)

Ground reference.

NIDCPOWER_VAL_INTERNAL_REFERENCE_NONE

1057 (0x421)

No internal reference.

NIDCPOWER_VAL_INTERNAL_REFERENCE_7V

1119 (0x45f)

7 V internal reference.

NIDCPOWER_VAL_INTERNAL_REFERENCE_1KOHM

1120 (0x460)

1 kohms internal reference.

Returns

Reports the status of this operation. To obtain a text description of the status code, call niDCPower_error_message. To obtain additional information concerning the error condition, call niDCPower_GetError. The general meaning of the status code is as follows:

Value

Meaning

0

Success

Positive Values

Warnings

Negative Values

Errors