set_filter
Configure the Infinite Impulse Response filter with one of available filter shape and typeTo use customer coefficients see `set_custom_filter`
Parameters
integer required
Target channel
allowed values:Moku:Lab 1, 2 Moku:Go 1, 2 Moku:Pro 1, 2, 3, 4
string
IIR Filter shape
default: Lowpass
allowed values:Lowpass, Bandstop
string
IIR Filter type
default: Butterworth
allowed values:Butterworth, ChebyshevI, ChebyshevII, Elliptic, Cascaded, Bessel, Gaussian, Legendre
number
Low corner frequency
default: undefined
units: Hz
number
High corner frequency
default: undefined
units: Hz
number
Pass band ripple
default: undefined
units: dB
number
Stopband attenuation
default: undefined
units: dB
integer required
Number of coefficients for the filter
allowed values:2, 4
boolean
Disable all implicit conversions and coercions.
default: true
# Examples
# Sample response
{
"low_pass_corner": 10000.0,
"order": 4,
"shape": "Lowpass"
}
1
2
3
4
5
2
3
4
5