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 Moku:Delta 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 Moku:Delta 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: Lowpassallowed values:Lowpass, Highpass, Bandpass, Bandstop number
Low corner frequency. The low_corner is expressed as a fraction of the sample rate. For instance, if the sample rate is 3.906 MHz and the low_corner value is 0.1, the resulting low corner frequency is 390.6 kHz.
default: undefinedallowed values:0.0001 to 0.49 number
High corner frequency. The high_corner is expressed as a fraction of the sample rate. For instance, if the sample rate is 3.906 MHz and the high_corner value is 0.1, the resulting high corner frequency is 390.6 kHz.
default: undefinedallowed values:0.0001 to 0.49 string
Window function
default: Noneallowed 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
{
"Bandpass high frequency corner": 0.4,
"Bandpass low frequency corner": 0.1,
"Bandstop high frequency corner": 0.4,
"Bandstop low frequency corner": 0.1,
"Decimation": 3,
"Filter design domain": "Frequency",
"Filter shape": "Lowpass",
"Highpass corner frequency": 0.4,
"Lowpass corner frequency": 0.1,
"Window function": "None",
"coefficient_count": 201,
"kaiser_order": 7,
"low_corner": 0.1,
"sample_rate": "39.06 MHz",
"shape": "Lowpass",
"window": "None",
"window_width": 50.0
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19