Python API Broken in MIM and 4.0.3

Moku model: Moku:Pro
Operating system: Windows 11
Software version: 4.0.3

Bug or support request description:

Several Python API commands related to the Laser Lock and FIR Filter Box do not work.

Command I tested:

  • get/set_pid_setpoint (LLB) : does not change the PID setpoint (as diplayed in the Desktop app), more strangely, calling get_pip_setpoint just after does return set value but this is lost after any call to relinquish_ownership().
  • load_settings (LLB) : does not work at all for the LLB (does nothing) BUT works for the FIR Filter.
  • set/get_input_gain (FIR Filter): does not work with similarly to get/set_pid_setpoint.
  • set/get_input/output_offset (FIR Builder): same issues.
  • generate_waveform (Waveform Generator): works as expected.

I did not test more instruments.

It seems thus than several Python commands do not work in 4.0.3 in Multi-Intruments mode. Is it expected ?

Hello @Azercoco ,

Thank you for reaching out to Liquid Instruments! There is a known issue with MokuOS 4.0.3 where certain settings made in the API are not persisting in the app (i.e. settings made in the API are resetting to default upon opening the app). This only happens upon opening the app; settings made in the API will remain while the script is running. You can check that the settings have been configured correctly by using the Getter functions in the API (i.e. get_pid_setpoint()). I hope this was helpful!

-Dylan

Hello @Dylan,

Thanks for the answer. If I understand correctly, the settings are actually modified but are reset upon opening the Desktop app ?
Is a workaround possible (I mainly use the script to setup the Moku configuration for my application) ? (For example if I downgrade to 4.0.2 ?).

Hi @Azercoco ,

Yes, you are correct. With that being said, using the save/upload configuration file feature could be used as a workaround here. You can use the API to configure your system, and then save the configuration file for each instrument/Multi-Instrument setup. Here is a link to an article describing how to do this. Then you can go to the app and upload this configuration file(s); here is an article describing that. I hope this was helpful!

-Dylan