WOLFRAM SYSTEM MODELER

FIRbyCoefficients

FIR filter defined by coefficients

Wolfram Language

In[1]:=
SystemModel["Modelica_Synchronous.RealSignals.Periodic.FIRbyCoefficients"]
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.

At the first clock tick i=1 the past values are filled with u at this clock tick (= steady state initialization).

Parameters (1)

cBufStart

Value: ones(size(a, 1) - 1)

Type: Real[size(a, 1) - 1]

Description: The u-buffer [u(i-1), u(i-2), ..., u(size(a,1)-1)] is initialized with u(i=1)*cBufStart

Inputs (1)

a

Default Value: {1 / 2, 1 / 2}

Type: Real[:]

Description: Coefficients of FIR filter

Connectors (2)

u

Type: RealInput

Description: Connector of clocked, Real input signal

y

Type: RealOutput

Description: Connector of clocked, Real output signal

Used in Examples (4)

UpSample2

Modelica_Synchronous.Examples.Elementary.RealSignals

Example of an UpSample block for Real signals combined with FIR filter blocks

TestFIR_1

Modelica_Synchronous.WorkInProgress.Tests

TestFIR

Modelica_Synchronous.WorkInProgress.Tests

TestFIR_Step

Modelica_Synchronous.WorkInProgress.Tests

Used in Components (1)

FIRbyWindow

Modelica_Synchronous.WorkInProgress.Incubate

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