blockFilterFIR
Discrete finite impulse response low or high pass filter
Extends from Interfaces.PartialSISO_equality (Partial Single Input Single Output (continuous or discrete) control block of Controller library where usually y=u if continuous block).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.BlockTypeWithGlobalDefault | blockType (from PartialSISO_equality) | Modelica_LinearSystems2.Controllers.Types.BlockTypeWithGlobalDefault.UseSampleClockOption | Type of block |
| Boolean | continuous (from PartialSISO_equality) | blockType == Types.BlockTypeWithGlobalDefault.Continuous or blockType == Types.BlockTypeWithGlobalDefault.UseSampleClockOption and sampleClock.blockType == Types.BlockType.Continuous | True, if continuous block, otherwise discrete block |
| Modelica_LinearSystems2.Controllers.Types.FIRspec | specType | Modelica_LinearSystems2.Controllers.Types.FIRspec.MeanValue | Specification type of FIR filter |
| Discrete block parameters | |||
| Integer | sampleFactor (from PartialSISO_equality) | 1 | Sample factor for sample time (Ts = sampleFactor * sampleClock.sampleTime) |
| Mean value filter | |||
| Integer | L | 2 | Length of mean value filter |
| FIR filter design | |||
| Modelica_LinearSystems2.Utilities.Types.FilterType | filterType | Modelica_LinearSystems2.Utilities.Types.FilterType.LowPass | Type of filter |
| Integer | order | 2 | Order of filter |
| Modelica.Units.SI.Frequency | f_cut | 1 | Cut-off frequency |
| Types.Window | window | Modelica_LinearSystems2.Controllers.Types.Window.Rectangle | Type of window |
| Real | beta | 2.12 | Beta-Parameter for Kaiser-window |
| FIR filter defined by coefficient vector | |||
| Real[:] | a | {1, 1} | FIR filter coefficients |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u (from PartialSISO_equality) | Continuous or discrete input signal of block | |
| Modelica.Blocks.Interfaces.RealOutput | y (from PartialSISO_equality) | Continuous or discrete output signal of block |