set_by_frequency
Configure the FIR filter frequency response.Parameters
integer required
Target channel
allowed values:Moku:Lab 1, 2 Moku:Go 1, 2 Moku:Pro 1, 2, 3, 4
number required
Desired sample rate
allowed values:Moku:Lab 15.63MHz, 7.813MHz, 3.906MHz, 1.953MHz, 976.6kHz, 488.3kHz, 244.1kHz, 122.1kHz Moku:Go 3.906MHz, 1.953MHz, 976.6kHz, 488.3kHz, 244.1kHz, 122.1kHz, 61.04kHz, 30.52kHz Moku:Pro 39.06MHz, 19.53MHz, 9.766MHz, 4.883MHz, 2.441MHz, 1.221MHz, 610.4kHz, 305.2kHz
units: Hz
number
Coefficient or tap count
default: 201
string
Filter shape
default: Lowpass
allowed values:Lowpass, Highpass, Bandpass, Bandstop
integer
Low corner frequency
default: undefined
units: Hz
integer
High corner frequency
default: undefined
units: Hz
string
Window function
default: None
allowed values:None, Bartlett, Hann, Hamming, Blackman, Nuttall, Tukey, Kaiser
integer
Window width (Only when window function is Tukey)
default: 50
integer
Beta/Order for kaiser window (Only when window function is Kaiser)
default: 7
boolean
Disable all implicit conversions and coercions.
default: true
# Examples
# Sample response
{
"coefficient_count": 201,
"kaiser_order": 7,
"low_corner": 0.1,
"sample_rate": "3.906 MHz",
"shape": "Lowpass",
"window": "None",
"window_width": 50.0
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
← Getters set_by_time →