niDCPower_ResetDevice
- Updated2025-10-06
- 1 minute(s) read
Resets all instruments in the session to a known state. The function disables power generation, resets all attributes for all instruments included in the session to their default values, clears errors such as overtemperature and unexpected loss of auxiliary power, commits the instrument attributes, and leaves the instrument(s) in the Uncommitted state. This function also performs a hard reset on the instrument(s) and driver software. This function has the same functionality as using reset in Measurement & Automation Explorer (MAX).
Syntax
ViStatus _VI_FUNC niDCPower_ResetDevice(ViSession vi)
Remarks
This also opens the output relay on instruments that have an output relay.
NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively.
Related topics:
Parameters
| Name | Direction | Type | Description |
|---|---|---|---|
| vi | [in] | ViSession | Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function. |
Returns
Reports the status of this operation. To obtain a text description of the status code, call niDCPower_error_message. To obtain additional information concerning the error condition, call niDCPower_GetError. The general meaning of the status code is as follows:
Value | Meaning |
|---|---|
0 | Success |
Positive Values | Warnings |
Negative Values | Errors |