WOLFRAM SYSTEM MODELER

FIRbyWindow

FIR filter defined by filter order, cut-off frequency and window-type

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica_Synchronous.WorkInProgress.Incubate.FIRbyWindow"]
Out[1]:=

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 (5)

filterType

Value: Modelica_Synchronous.WorkInProgress.Incubate.Types.FIR_FilterType.LowPass

Type: FIR_FilterType

Description: Type of filter

order

Value: 2

Type: Integer

Description: Order of filter

f_cut

Value: 1

Type: Frequency

Description: Cut-off frequency

window

Value: Modelica_Synchronous.WorkInProgress.Incubate.Types.FIR_Window.Kaiser

Type: FIR_Window

Description: Type of window

beta

Value: 2.12

Type: Real

Description: Beta-Parameter for Kaiser-window

Outputs (1)

a

Default Value: Modelica_Synchronous.WorkInProgress.Incubate.Internal.FIR_coefficients(filterType, order, f_cut, interval(u), window, beta)

Type: Real[order + 1]

Connectors (2)

u

Type: RealInput

Description: Connector of clocked, Real input signal

y

Type: RealOutput

Description: Connector of clocked, Real output signal

Components (1)

FIRbyCoefficients1

Type: FIRbyCoefficients

Description: FIR filter defined by coefficients

Used in Examples (2)

TestFIR_Step2

Modelica_Synchronous.WorkInProgress.Tests

TestFIR_Step2b

Modelica_Synchronous.WorkInProgress.Tests