RMS
Advanced Analysis Library Only
AnalysisLibErrType RMS (double inputArray[], ssize_t numberOfElements, double *rootMeanSquared);
Purpose
Calculates the root-mean-square (rms) value of the input array. RMS uses the following formula to find the rms value:

Parameters
Input | ||
Name | Type | Description |
inputArray | double [] | Input array used to compute the rms value. |
numberOfElements | ssize_t | Number of elements used to compute the rms value. |
Output | ||
Name | Type | Description |
rootMeanSquared | double | Root-mean-square value of the input array. |
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
Example
Refer to apps\freqresp\freqresp.cws for an example of using the RMS function.