niDCPower_ChangeExtCalPassword

NI-DCPower Function Reference

niDCPower_ChangeExtCalPassword

ViStatus niDCPower_ChangeExtCalPassword (ViSession vi, ViConstString oldPassword, ViConstString newPassword);

Purpose

Changes the password that is required to initialize an external calibration session. The password can be a maximum of four alphanumeric characters. If you call this function in a regular session, password is changed immediately. If you call this function in an external calibration session, password is changed only after you close the session using the niDCPower_CloseExtCal function with action set to NIDCPOWER_VAL_COMMIT.

Parameters

Input
Name Type Description
vi ViSession Identifies a particular instrument calibration session. vi is obtained from the niDCPower_InitExtCal function.
oldPassword ViConstString Specifies the previous password used to protect the calibration values.
newPassword ViConstString Specifies the new password to use to protect the calibration values.

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.