niDCPower_QueryMaxVoltageLevel
- Updated2025-10-06
- 1 minute(s) read
Queries the maximum voltage level on a channel if the channel is set to the specified currentLimit.
Syntax
ViStatus _VI_FUNC niDCPower_QueryMaxVoltageLevel(ViSession vi, ViConstString channelName, ViReal64 currentLimit, ViReal64 *maxVoltageLevel)
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 voltage level 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. |
| currentLimit | [in] | ViReal64 | Specifies the current limit to use when calculating the maxVoltageLevel. |
| maxVoltageLevel | [out] | ViReal64 * | Returns the maximum voltage level that can be set on a channel with the specified currentLimit. |
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 |