set_by_gain_and_section

Configure the selected PID controller and its sections using gain coefficients.

The PID controller block in the Moku contains two cascaded sections. This function allows full configuration of both sections for maximum flexibility. For a simpler interface, see `set_by_gain` and `set_by_frequency`.

Parameters

integer required
Target channel
allowed values:
Moku:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 2, 3, 4
integer required
Section to configure
number
Overall Gain
default: undefined
units: dB
number
Proportional gain factor
default: undefined
units: dB
number
Integrator gain factor
default: undefined
units: dB
number
Differentiator gain factor
default: undefined
units: dB
number
Integrator gain saturation corner
default: undefined
units: Hz
number
Differentiator gain saturation corner
default: undefined
units: Hz
boolean
Disable all implicit conversions and coercions.
default: true

# Examples

# Sample response

{
  "diff_corner": 100.0,
  "diff_gain": 0.0,
  "int_corner": 5.0,
  "int_gain": 40.0,
  "overall_gain": 6.0,
  "prop_gain": 20.0
}
1
2
3
4
5
6
7
8