Digital notch filter function. Each function call will have its own storage.
Syntax |
real filter_notch (real val, real omega, real valQ) |
---|---|
val |
Is the value (or a generic mathematical expression) to be filtered |
omega |
Value of the cut filter omega in radians per second (omega = 2 * K_PI * cut frequency (Hz)). It can be a generic mathematical expression |
valQ |
Value of the filter Q coefficient (Q must be >= 0.75). Can be a generic mathematical expression |
Result |
Returns the filtered value |
Validity |
Rule |
Note |
Automatic omega limitation: (omega_max = 0.15 / si * 2 * K_PI) -> i.e. no more than 15% of omega value corresponding to rule sampling time. (e.g. if Freq = 200Hz -> filter cut frequency <= 30 Hz) |
Example of use:
|