set_by_time

Configure the FIR filter impulse response.

Parameters

integer required
Target channel
allowed values:
Moku:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 2, 3, 4
number required
Desired sample rate
allowed values:
Moku:Lab15.63MHz, 7.813MHz, 3.906MHz, 1.953MHz, 976.6kHz, 488.3kHz, 244.1kHz, 122.1kHz
Moku:Go3.906MHz, 1.953MHz, 976.6kHz, 488.3kHz, 244.1kHz, 122.1kHz, 61.04kHz, 30.52kHz
Moku:Pro39.06MHz, 19.53MHz, 9.766MHz, 4.883MHz, 2.441MHz, 1.221MHz, 610.4kHz, 305.2kHz
units: Hz
Coefficient or tap count
default: 201
string
Impulse response shape
default: Sinc
allowed values:Rectangular, Sinc, Triangular, Gaussian
Impulse response width
default: undefined
string
Window function
default: None
allowed values:None, Bartlett, Hanning, 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,
   "response":"Sinc",
   "response_width":10.0,
   "sample_rate":"3.906 MHz",
   "window":"None",
   "window_width":50.0
}
1
2
3
4
5
6
7
8
9