Closes the session specified in vi and deallocates the resources that NI-DCPower reserves. If power output is enabled when you call this function, the channels remain in their existing state and continue providing power. Use the niDCPower_ConfigureOutputEnabled function to disable power output on a per channel basis. Use the niDCPower_ResetWithChannels function to disable power output on all channel(s).

Syntax

ViStatus _VI_FUNC niDCPower_close(ViSession vi)

Remarks

Note

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:

Programming States

Parameters

NameDirectionTypeDescription
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