.Modelica_LinearSystems2.WorkInProgress.Tests.Filters.plotFilter

Interface

function plotFilter
  import ZP = Modelica_LinearSystems2.ZerosAndPoles;
  import Modelica_LinearSystems2.Utilities.Types;
  import Modelica.Utilities.Streams.print;
  import Modelica.Constants.pi;
  import Complex;
  input Types.AnalogFilter analogFilter "Analog filter characteristics (CriticalDamping/Bessel/Butterworth/Chebyshev)";
  input Types.FilterType filterType = Utilities.Types.FilterType.LowPass "Type of filter (LowPass/HighPass)";
  input Modelica.Units.SI.Frequency f_cut = 1/(2*Modelica.Constants.pi) "Cut-off frequency";
  input Real A_ripple(unit = "dB") = 0.5 "Pass band ripple for Chebyshev filter (otherwise not used)";
  input Modelica.Units.SI.Frequency f_min = 0 "Band of pass band filter is f_min (-3db) .. f_cut (-3db)";
  input Boolean normalized = true "True, if amplitude at f_cut decreases/increases 3 db (for low/high pass filter), otherwise unmodified filter";
end plotFilter;

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos