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
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
Pass band ripple
default: undefined
units: dB
Stopband attenuation
default: undefined
units: dB
number required
Number of coefficients for the filter
boolean
Disable all implicit conversions and coercions.
default: true

# Examples

# Sample response

{
  "low_pass_corner":10000.0,
  "shape":"Lowpass"
}
1
2
3
4