set_custom_filter

Set the infinite impulse response filter sample rate and filter coefficients for a given filter id.

Parameters

integer required
Target channel
allowed values:
Moku:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 2, 3, 4
Moku:Delta1, 2, 3, 4
number required
Sampling rate for the filter
allowed values:
Moku:Lab15.6MSa/s, 1.95MSa/s, 122kSa/s
Moku:Go3.91MSa/s, 488kSa/s, 61kSa/s
Moku:Pro39.1MSa/s, 4.88MSa/s, 305kSa/s
Moku:Delta39.1MSa/s, 4.88MSa/s, 305kSa/s
units: Hz
integer
Filter output scaling
default: 1
list required
List of filter stages, where each stage should have six coefficients and each coefficient must be in the range [-4.0, 4.0]
boolean
Disable all implicit conversions and coercions.
default: true

# Examples

# Sample response

{
    "sample_rate": "39.1MSa/s",
    "shape": "Custom"
}
1
2
3
4