BlockWerk Documentation
⎍

Digital Filter

Discrete

The 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.

Simulate in BlockWerk

Interactive sandbox directly in your browser — zero installation, WASM-powered.

Simulate in BlockWerk →

Mathematical Model

y[n]=1a0(∑i=0Nbiu[n−i]−∑j=1Majy[n−j])y[n] = \frac{1}{a_0} \left( \sum_{i=0}^{N} b_i u[n-i] - \sum_{j=1}^{M} a_j y[n-j] \right)

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