maxAmplitudeCurveForIcon function
Requirements.ChecksInFixedWindow_withFFT.Internal.maxAmplitudeCurveForIcon
· source
Return maxAmplitude = f(frequency) for icon animation in defined icon area
Extends Modelica.Icons.Function
Converts the limit curve A ([frequency in Hz, amplitude]) into icon coordinates of the FFT
blocks (x from -260 to 260 for frequencies 0 .. f_max, y from -260 to 160 for amplitudes
0 .. A_max, amplitudes clipped at A_max). A point beyond f_max
that follows a point below f_max is replaced by the curve interpolated at f_max
at the right border of the plot; further points repeat the previous point. If already the first point
lies beyond f_max, it is drawn at the right border at its own (clipped) amplitude. The result is the red
limit line in the icons of WithinAbsoluteDomain and WithinRelativeDomain.
Revisions
| Date | Description |
|---|---|
| Nov. 29, 2015 | Initial version implemented by
Martin R. Kuhn and Martin Otter
(DLR Institute of System Dynamics and Control) The research leading to these results has received funding from the European Union’s Seventh Framework Programme (FP7/2007-2016) for the Clean Sky Joint Technology Initiative under grant agreement no. CSJU-GAM-SGO-2008-001. |
| Dec. 3, 2026 | If the first point of the limit curve lies beyond f_max, it is now drawn at the right border of the plot in icon coordinates; before it was set to {0, A_max} in data units (H. Tummescheit, Model Based Innovation LLC) |
Inputs
| Name | Type | Description |
|---|---|---|
A[…] input | Real | Amplitude to plot |
A_max input | Real | Maximum value to be shown |
f_max input | Real | Maximum frequency to be shown |
Outputs
| Name | Type | Description |
|---|---|---|
line[…] output | Real | Line to be shown in icon |