niDCPower_QueryMaxCurrentLimit
- Updated2025-10-06
- 1 minute(s) read
Queries the maximum current limit on a channel if the channel is set to the specified voltageLevel.
Syntax
ViStatus _VI_FUNC niDCPower_QueryMaxCurrentLimit(ViSession vi, ViConstString channelName, ViReal64 voltageLevel, ViReal64 *maxCurrentLimit)
Parameters
| Name | Direction | Type | Description |
|---|---|---|---|
| vi | [in] | ViSession | Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function. |
| channelName | [in] | ViConstString | Specifies the channel to query. The maximum current limit may only be queried for one channel at a time. Specify the channel using the form PXI1Slot3/0, where PXI1Slot3 is the instrument resource name and 0 is the channel. |
| voltageLevel | [in] | ViReal64 | Specifies the voltage level to use when calculating the maxCurrentLimit. |
| maxCurrentLimit | [out] | ViReal64 * | Returns the maximum current limit that can be set with the specified voltageLevel. |
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 |