NI-DCPower C Function Reference Help

niDCPower_CloseExtCal

  • Updated2023-04-15
  • 1 minute(s) read

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.

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_COMMIT (1002)The new calibration constants are stored in the EEPROM.
NIDCPOWER_VAL_CANCEL (1001) The old calibration constants are kept, and the new ones are discarded.

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.

Log in to get a better experience