blockFIRbyCoefficients

FIR filter defined by coefficients

Extends from Clocked.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.

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

Parameters

TypeNameDefaultDescription
Advanced
Real[size(a, 1) - 1]cBufStartones(size(a, 1) - 1)The u-buffer [u(i-1), u(i-2), ..., u(size(a,1)-1)] is initialized with u(i=1)*cBufStart

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu (from PartialClockedSISO)Connector of clocked, Real input signal
Modelica.Blocks.Interfaces.RealOutputy (from PartialClockedSISO)Connector of clocked, Real output signal

Components

TypeNameDefaultDescription
Real[:]a{1/2, 1/2}Coefficients of FIR filter