niDCPower_CalConfigACFlatness
- Updated2025-10-06
- 1 minute(s) read
Configures the device to output a voltage stimulus for AC voltage flatness calibration.
Syntax
ViStatus _VI_FUNC niDCPower_CalConfigACFlatness(ViSession vi, ViConstString channelName, ViReal64 *generatedFrequency, ViReal64 *generatedVoltageRMS)
Remarks
This function returns the generated frequency and voltage stimulus value.
This function is not supported on all devices. Refer to Supported Functions by Device for more information about supported devices.
Parameters
| Name | Direction | Type | Description |
|---|---|---|---|
| vi | [in] | ViSession | Identifies a particular instrument calibration session. vi is obtained from the niDCPower_InitExtCal function. |
| channelName | [in] | ViConstString | Specifies the channel to which these calibration settings apply. Only one channel at a time can be calibrated. |
| generatedFrequency | [out] | ViReal64 * | Returns the generated frequency for the present AC flatness calibration step. |
| generatedVoltageRMS | [out] | ViReal64 * | Returns the generated nominal RMS voltage, in volts, for the present AC flatness calibration step. |
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 |