blockFIRbyWindow
FIR filter defined by filter order, cut-off frequency and window-type
Extends from Modelica_Synchronous.RealSignals.Interfaces.PartialClockedSISO (Block with clocked single input and clocked single output Real signals).
Information
This block computes the output y as a linear combination of the input u and of its past values (= FIR filter):
y(i) = a[1]*u(i) + a[2]*u(i-1) + a[3]*u(i-2) + ...
where y(i) and u(i) are the values of y and u at clock tick i and a[:] are the filter coefficients. Contrary to block FIRbyCoefficients this block computes the filter coefficients a[:] by design parameters (filter order, cut-off frequency, filter window)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_Synchronous.WorkInProgress.Incubate.Types.FIR_FilterType | filterType | Modelica_Synchronous.WorkInProgress.Incubate.Types.FIR_FilterType.LowPass | Type of filter |
| Integer | order | 2 | Order of filter |
| Modelica.SIunits.Frequency | f_cut | 1 | Cut-off frequency |
| Modelica_Synchronous.WorkInProgress.Incubate.Types.FIR_Window | window | Modelica_Synchronous.WorkInProgress.Incubate.Types.FIR_Window.Kaiser | Type of window |
| Real | beta | 2.12 | Beta-Parameter for Kaiser-window |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u (from PartialClockedSISO) | Connector of clocked, Real input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y (from PartialClockedSISO) | Connector of clocked, Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real[order + 1] | a | Modelica_Synchronous.WorkInProgress.Incubate.Internal.FIR_coefficients(filterType, order, f_cut, interval(u), window, beta) | |
| Modelica_Synchronous.RealSignals.Periodic.FIRbyCoefficients | FIRbyCoefficients1 |