niDCPower_CloseExtCal

NI-DCPower Function Reference

niDCPower_CloseExtCal

ViStatus niDCPower_CloseExtCal (ViSession vi, ViInt32 action);

Purpose

Closes the session specified in vi and deallocates the resources that NI-DCPower reserved for calibration. Refer to the calibration procedure for the device you are calibrating for detailed instructions on the appropriate use of this function. If an error occurs before this function, action defaults to NIDCPOWER_VAL_CANCEL.

Parameters

Input
Name Type Description
vi ViSession Identifies a particular instrument calibration session. vi is obtained from the niDCPower_InitExtCal function.
action ViInt32 Specifies how to use the calibration values from this session as the session is closed.

Defined Values:

NIDCPOWER_VAL_COMMITThe new calibration constants are stored in the EEPROM.
NIDCPOWER_VAL_CANCEL The old calibration constants are kept, and the new ones are discarded.

Default Value: NIDCPOWER_VAL_CANCEL

Return Value

Name Type Description
StatusViStatusReports the status of this operation. To obtain a text description of the status code, call the niDCPower_error_message function. To obtain additional information concerning the error condition, call the niDCPower_GetError function.