Admin Production ni-theme
Current Publication

ACDCEstimator

LabWindows/CVI

ACDCEstimator

Advanced Analysis Library Only

AnalysisLibErrType ACDCEstimator (double inputArray[], ssize_t numberOfElements, double *acEstimate, double *dcEstimate);

Purpose

Calculates an estimation of the AC and DC contents of the input signal. inputArray is the input signal, usually in volts.

acEstimate is the estimate of the input signal AC content in volts, root-mean-square, if the input signal is in volts.

dcEstimate is the estimate of the input signal DC content in volts, if the input signal is in volts.

Parameters

Input
Name Type Description
inputArray double [] The time-domain signal, usually in volts. This array must contain at least three cycles of the signal for a valid estimate.
numberOfElements ssize_t Number of elements in the input array.
Output
Name Type Description
ACEstimate double The estimate of the AC level of the input signal in volts, root-mean-square, if the input signal is volts.
DCEstimate double The estimate of the DC level of the input signal in the same units as the input signal.

Return Value

Name Type Description
status AnalysisLibErrType A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.

Additional Information

Library: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 3.1 and later