set_filter

Configure the infinite impulse response filter with one of available filter shape and type

To use customer coefficients see `set_custom_filter`

Parameters

integer required
Target channel
allowed values:
Moku:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 2, 3, 4
number required
Sampling rate for the filter
allowed values:
Moku:Lab15.625MHz, 1.9531MHz, 122.07kHz
Moku:Go3.906MHz, 488.3kHz, 61.04kHz
Moku:Pro39.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
Pass band ripple
default: undefined
units: dB
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