Integrated RMS
Calculates (optionally integrated) RMS values for single- and multi-channel real-valued time series.
The documentation of the corresponding PLC function block can be found here: FB_CMA_IntegratedRMS
The documentation of the TwinCAT 3 Condition Monitoring PLC library can be found here: Overview.
Configuration options
- FFT Length: is the length of the FFT. It must be greater than one and an integral power of two.
- Window Length: is the length of the analysis window in samples. The length must be greater than one and an even number.
- Sample Rate: sampling rate of the incoming time signal. The value is used for the scaling of the result in Hz.
- Max Integration Order: is the maximum order of integration. This must be an integer between zero and two. The number of the values determined per channel is (
Order+1
). - WindowType: Defines the used window function (of the type E_CM_WindowType). A good default value is the window type
eCM_HannWindow
. - Lower Frequency Limit: lower limit of the considered frequency interval. The lower cut-off frequency must be at least the sampling rate divided by the FFT-length.
- Upper Frequency Limit: upper limit of the considered frequency interval. The upper cut-off frequency must be no greater than half the sampling rate and greater than the lower cut-off frequency.
- Max Frequency Bands: this value specifies the maximum number of frequency bands for which the RMS value is calculated.
- Number of Channels: defines the number of independent channels. This must be greater than zero.
- Window Overlap: defines the number of overlapping samples. This must be greater than or equal to zero.
- Use Recommended Overlap: if selected, a recommended overlap is calculated internally (see F_CM_CalculateRecommendedOverlap).
- Transform to Decibel: is a Boolean value that indicates whether the result of the FFT is to be transformed to the decibel scale, according to transformation x -> 20 * log10(x).
- Decibel Threshold: is a very small floating point value greater than zero. Values that are less than this number are replaced with this value before any transformation to the decibel scale. (The purpose is the avoidance of value range errors. The logarithm of zero is not defined and strives infinitely towards minus for the limit value of small arguments. The same applies to the argument of the number zero, arg(0). The smallest possible value is 2.3e-308)
- Config: MaxBands x [fmin, fmax]: definition of the configurable lower and upper limit of the frequency bands.
- Window Parameters: contains the free parameters of selected window functions. When using
eCM_KaiserWindow
, the first entry defines the parameter beta; ifeCM_FlatTopWindow
is used, all parameters are used. See section Window functions.