Digital Filter
DiscreteThe DigitalFilter block is a highly advanced signal processing tool designed to filter discrete-time signals during a simulation. It supports various traditional Infinite Impulse Response (IIR) filter approximations (Butterworth, Chebyshev I, Bessel) in cascading biquad structures, as well as Finite Impulse Response (FIR) Moving Average filters.
It calculates coefficients dynamically based on the current sample frequency (derived from the solver's fixed step size) to ensure mathematically accurate filtering in real-time.
Mathematical Model
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | in |
In | number | Required |
| ← Out | out |
Out | number | Output |
Parameters
| Parameters | Label | Type | Default | Description |
|---|---|---|---|---|
designMethod |
Design Method | select | Butterworth |
|
filterType |
Filter Type | select | Lowpass |
|
cutoffFreq |
Cutoff Freq (Hz) | number | 10 |
|
bandwidth |
Bandwidth (Hz) | number | 2 |
|
order |
Filter Order | select | 2 |
|
ripple |
Ripple (dB) | number | 1 |
|
windowSize |
Window Size | number | 10 |
Usage Examples
- Zie de ingebouwde voorbeelden in de handleiding voor een demonstratie van dit blok.
Remarks & Best Practices
- Configuratie: Configureer dit blok via de parameters in het paneel.
Related Components
- Constant: Eenvoudige signaalbron