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
number required
Sampling rate for the filter
allowed values:Moku:Lab 15.625MHz, 1.9531MHz, 122.07kHz Moku:Go 3.906MHz, 488.3kHz, 61.04kHz Moku:Pro 39.06MHz, 4.883MHz, 305.2kHz
units: Hz
string
IIR Filter shape
default: Lowpass
allowed values:Lowpass, Highpass, Bandpass, 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, 6, 8
boolean
Disable all implicit conversions and coercions.
default: true
# Examples
# Sample response
{
"low_pass_corner": 10000.0,
"sample_rate": "3.9063 MHz",
"shape": "Lowpass"
}
1
2
3
4
5
2
3
4
5