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

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)

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 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

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