# Moku:Go 3 slot MIM pid set by gain and section doesn't work for section 2

**URL:** <https://forum.liquidinstruments.com/t/moku-go-3-slot-mim-pid-set-by-gain-and-section-doesnt-work-for-section-2/1272>\
**Category:** Support & Troubleshooting\
**Created:** [February 23, 2026, 6:18pm UTC](https://forum.liquidinstruments.com/t/moku-go-3-slot-mim-pid-set-by-gain-and-section-doesnt-work-for-section-2/1272 "2026-02-23T18:18:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackAttack720](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@JackAttack720](https://forum.liquidinstruments.com/u/JackAttack720)\
**Post date:** [February 23, 2026, 6:18pm UTC](https://forum.liquidinstruments.com/t/moku-go-3-slot-mim-pid-set-by-gain-and-section-doesnt-work-for-section-2/1272/1 "2026-02-23T18:18:13Z")

</div>

**Moku model: Moku:Go M2 Firmware 635.0**  
**Operating system: Windows 11**  
**Software version: MokuOS 4.1.2**

**Bug or support request description:**

In multi-instrument context, if platform id=3, when using the python API set\_by\_gain\_and\_section to set PID behavior using the advanced functionality of the PID controller like the following:

`pid.set_by_gain_and_section(`  
` channel=1,`  
` section=2,`  
` overall_gain=0.0, # Placeholder value`  
` prop_gain=0.0, # Placeholder value`  
`)`

I get

`moku.exceptions.InvalidParameterException: [‘Invalid section. Should be in between 1 and 1’]`

Which is incorrect because there are two sections. This is a blocking problem for my application as set\_by\_gain doesn’t allow for me to utilize both sections to maintain a full output range while having a negative proportional gain.

---

<div class="post-metadata">

**Author:** ![JackAttack720](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@JackAttack720](https://forum.liquidinstruments.com/u/JackAttack720)\
**Post date:** [February 23, 2026, 7:46pm UTC](https://forum.liquidinstruments.com/t/moku-go-3-slot-mim-pid-set-by-gain-and-section-doesnt-work-for-section-2/1272/2 "2026-02-23T19:46:35Z")

</div>

An update: I attempted to enable section B prior to calling set\_by\_gain\_and\_section by loading a moku configuration file where I had manually enabled section B via advanced mode on the GUI.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/liquidinstruments/original/1X/12428cd5fedb2be198e2296c7f1acff564f015ba.png)

However, I still encounter the same error.

---

<div class="post-metadata">

**Author:** ![Dylan](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dylan](https://forum.liquidinstruments.com/u/Dylan)\
**Post date:** [February 23, 2026, 9:12pm UTC](https://forum.liquidinstruments.com/t/moku-go-3-slot-mim-pid-set-by-gain-and-section-doesnt-work-for-section-2/1272/3 "2026-02-23T21:12:51Z")

</div>

Hello @JackAttack720 ,

Thank you for reaching out. I was able to replicate the error you are seeing using `pid.set_by_gain_and_section()`; I will report this to our team and update the thread once it has been fixed. As a workaround I was able to upload the .mokuconf files. Here is a snippet of the code I used:

```auto
m=MultiInstrument('192.168.X.XXX', platform_id=3, force_connect=True)

m.load_configuration('/Users/dylanperez/Downloads/PID_API_test/MokuMultiInstrument_20260223_130025.mokuconf')

pid=m.set_instrument(1, PIDController)

pid.load_settings('/Users/dylanperez/Downloads/PID_API_test/MokuPIDControllerSlot1_20260223_130720.mokuconf')

m.relinquish_ownership()

```

I hope this is an acceptable workaround for the time being and if you have any other questions please let me know.

-Dylan

---

<div class="post-metadata">

**Author:** ![JackAttack720](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@JackAttack720](https://forum.liquidinstruments.com/u/JackAttack720)\
**Post date:** [February 23, 2026, 10:00pm UTC](https://forum.liquidinstruments.com/t/moku-go-3-slot-mim-pid-set-by-gain-and-section-doesnt-work-for-section-2/1272/4 "2026-02-23T22:00:58Z")

</div>

That’s approximately useful, but I do still want to be able to update values programmatically. What kind of encoding is used in the 3\_1\_PID Controller file within the mokuconf? I think I can just make edits to an existing .mokuconf file and then load the settings to achieve what the API would normally do.

```auto
{
            "name": ["Controller 1", "Integrator gain"],
            "uid": "a41194a8-3be1-4c3d-ba79-85013a38bef1_1",
            "value": "AAAAAAAAAE5A",
            "value_string": "+60.0 dB",
},

```

I’ve just been trying to work out the conversion between the value and the value string and then I think we’d be good to go.

Thanks.

---

<div class="post-metadata">

**Author:** ![Dylan](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dylan](https://forum.liquidinstruments.com/u/Dylan)\
**Post date:** [March 19, 2026, 5:14pm UTC](https://forum.liquidinstruments.com/t/moku-go-3-slot-mim-pid-set-by-gain-and-section-doesnt-work-for-section-2/1272/5 "2026-03-19T17:14:35Z")

</div>

Hi @JackAttack720 ,

We have just released MokuOS 4.2 which includes a fix for this issue. Please download the new app [here](https://liquidinstruments.com/products/download/), upgrade your API package `pip install --upgrade moku`, and install the bitstreams `mokucli instrument download 4.2.1`. I hope this helps!

-Dylan

---

<div class="post-metadata">

**Author:** ![JackAttack720](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@JackAttack720](https://forum.liquidinstruments.com/u/JackAttack720)\
**Post date:** [April 1, 2026, 5:19pm UTC](https://forum.liquidinstruments.com/t/moku-go-3-slot-mim-pid-set-by-gain-and-section-doesnt-work-for-section-2/1272/6 "2026-04-01T17:19:36Z")

</div>

Thanks Dylan! Glad to hear this fix is in the latest update. Cheers!
