set_by_gain
Configure the selected PID controller using gain coefficients.The PID instrument contains two cascaded PID sections. Using this function sets the overall gains of the two sections in an optimal way. If you wish to set them individually, including configuring double-integrators, see `set_by_gain_and_section`.
Parameters
boolean
Disable all implicit conversions and coercions.
default: true
integer required
Target channel
allowed values:Moku:Lab 1, 2 Moku:Go 1, 2 Moku:Pro 1, 2, 3, 4
number
Overall Gain
default: undefined
units: dB
number required
Proportional gain factor
units: dB
number required
Integrator gain factor
units: dB
number required
Differentiator gain factor
units: dB
number required
Integrator gain saturation corner
units: Hz
number required
Differentiator gain saturation corner
units: Hz
# 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
},
{
"diff_corner": 1000000.0,
"diff_gain": -60.0,
"int_corner": 10000.0,
"int_gain": 60.0,
"overall_gain": 6.0,
"prop_gain": 20.0
}
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18