NI-DCPower C Function Reference Help

niDCPower_InitExtCal

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

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

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.

Note Note  This function and the sessions is creates do not support fully qualified channel names.

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 accept a logical IVI name for a device.
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
vi 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.

Log in to get a better experience