Closes an NI-RFSA external calibration session and, if specified, stores the new calibration constants and calibration data, such as time and temperature, in the onboard EEPROM.

Syntax

ViStatus _VI_FUNC niRFSA_CloseExtCal(ViSession vi, ViInt32 action)

Remarks

Supported Devices: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860

Parameters

NameDirectionTypeDescription
vi[in]ViSession

Identifies your instrument session. vi is obtained from the niRFSA_InitExtCal function and identifies a particular instrument session.

action[in]ViInt32

Specifies how to use the calibration values from this session as the session is closed.

Value

Description

NIRFSA_VAL_EXT_CAL_ABORT

The old calibration constants are kept, and the new ones are discarded.

NIRFSA_VAL_EXT_CAL_COMMIT

The new calibration constants are stored in the EEPROM.

Returns

Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. Examine the status code from each call to an NI-RFSA function to determine if an error has occurred. To obtain a text description of the status code and additional information about the error condition, call the niRFSA_GetError function. To clear the error information from NI-RFSA, call the niRFSA_ClearError function. The general meaning of the status code is as follows:

Value

Meaning

0

Success

Positive Values

Warnings

Negative Values

Errors