SignalAnalysis package
Requirements.SignalAnalysis
ยท source
Library of signal analysis blocks to compute properties from Real signals
Extends Modelica.Icons.Package
This library provides blocks that compute properties of Real (and Boolean) signals, such as derivatives, integrals, averages, durations and step-response metrics. They do not decide a requirement themselves; their outputs are inputs to the check blocks of the library (for example of ChecksInFixedWindow or ChecksInSlidingWindow), or are used to formulate the condition of a requirement directly.
- Derivatives: ExactDerivative (analytic, with
der()), ApproximateDerivativeWithFilter (low pass filter, then analytic derivative) and ApproximateDerivativeWithWindow (backwards finite difference). - TriggeredIntegrator: integral of the input while a Boolean input is true, reset at its rising edge.
- MovingAverage: continuous moving average over a time window while a Boolean input is true.
- TimeMonitoring: duration since a Boolean input became true.
- CrossingMonitoring: Boolean output that follows the crossings of a threshold.
- StepResponse: sampled running metrics of a step response (overshoot, rise, delay and settling time, extrema, damping ratio), evaluated by ChecksInFixedWindow.StepResponseCheck.
Examples are in Examples.Elementary.SignalAnalysis.
Contents
| Name | Kind | Description | |
|---|---|---|---|
| ExactDerivative | block | Output is the analytic derivative of the input (= exact derivative) | |
| ApproximateDerivativeWithFilter | block | Output is the filtered derivative of the input (= approximate derivative) | |
| ApproximateDerivativeWithWindow | block | Output is the finite difference quotient of the input (= approximate derivative) | |
| TriggeredIntegrator | block | Output is the integral over the input, as long as the Boolean input active is true (for a rising edge of active the integrator state is reset to 0) | |
| MovingAverage | block | Output is the continuous moving average of the input | |
| TimeMonitoring | block | Output is the time duration where the Boolean input was true | |
| CrossingMonitoring | block | Output is true for a positive threshold crossing of the input and false for a negative threshold crossing | |
| StepResponse | block | Running step-response metrics of u after a step of r, sampled: the peak, the level crossings, the last exit from the settling band, the extrema |