niDCPower_InitExtCal

NI-DCPower Function Reference

niDCPower_InitExtCal

ViStatus niDCPower_InitExtCal (ViRsrc resourceName, ViConstString password, ViSession *newVi);

Purpose

If password is valid, this function creates a new IVI instrument driver session to the device specified in resourceName and returns an instrument handle you use to identify the device in all subsequent NI-DCPower function calls. This function also sends initialization commands to set the device to the state necessary for the operation of NI-DCPower.

Opening a calibration session always performs a reset. 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
resourceName ViRsrc Specifies the resourceName assigned by Measurement & Automation Explorer (MAX), for example "PXI1Slot3" where "PXI1Slot3" is an instrument's resourceName. resourceName can also be a logical IVI name.
password ViConstString Specifies the password for opening a calibration session. The initial password is factory configured to "NI". password can be a maximum of four alphanumeric characters.
Output
Name Type Description
newVi ViSession* Returns a handle that you use to identify the session in all subsequent NI-DCPower function calls.

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.