# Unable to set the Laser Lock Box digital input gain to 24dB or 48dB on the Python API

**URL:** <https://forum.liquidinstruments.com/t/unable-to-set-the-laser-lock-box-digital-input-gain-to-24db-or-48db-on-the-python-api/1251>\
**Category:** Support & Troubleshooting\
**Created:** [December 5, 2025, 5:41am UTC](https://forum.liquidinstruments.com/t/unable-to-set-the-laser-lock-box-digital-input-gain-to-24db-or-48db-on-the-python-api/1251 "2025-12-05T05:41:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgrass](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@dgrass](https://forum.liquidinstruments.com/u/dgrass)\
**Post date:** [December 5, 2025, 5:41am UTC](https://forum.liquidinstruments.com/t/unable-to-set-the-laser-lock-box-digital-input-gain-to-24db-or-48db-on-the-python-api/1251/1 "2025-12-05T05:41:38Z")

</div>

**Moku model: Pro**  
**Operating system: Python API**  
**Software version: 4.1**

**Bug or support request description:**

On the Moku Python API, I am Unable to set the Laser Lock Box digital input gain to 24dB or 48dB on the Python API. I get ‘Cannot understand request. One or more key/values are incorrect’] However, when I run i.set\_digital\_input\_gain(‘0dB’), the code compiles. I am in multi-instrument mode. The moku firmware and moku cli were both updated today (I haven’t tried this command before today)

---

<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:** [December 5, 2025, 8:22pm UTC](https://forum.liquidinstruments.com/t/unable-to-set-the-laser-lock-box-digital-input-gain-to-24db-or-48db-on-the-python-api/1251/2 "2025-12-05T20:22:50Z")

</div>

Hello @dgrass ,

Thank you for reaching out to Liquid Instruments! There appears to be an issue with `set_digital_input_gain`; I will work with our development team to get this fixed. In the mean time, the workaround is to save the configuration files of your system, and upload them with the API. By doing this, you can setup your system in the app, setting the digital gain, attenuation, and any other parameters. Then, you can save the Multi-Instrument configuration, as well as the configuration of the individual instruments and upload them with the Python API. [Here](https://knowledge.liquidinstruments.com/uploading-mokuconf-files-with-moku-api?from_search=210879503) is a link to an article describing how to do this. I hope this is helpful and will update this thread once the issue has been resolved.

-Dylan

---

<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:** [December 8, 2025, 10:32pm UTC](https://forum.liquidinstruments.com/t/unable-to-set-the-laser-lock-box-digital-input-gain-to-24db-or-48db-on-the-python-api/1251/3 "2025-12-08T22:32:32Z")

</div>

Hello @dgrass ,

After some discussion with the development team, the proper syntax for this command is `set_digital_input_gain(‘+24dB’)` where you will need to specify the `+` sign (not required for 0 dB). We are currently working on getting the documentation updated to reflect this. Thank you!

-Dylan
