Issues with using new API streaming with Datalogger

Moku model: Moku:Go
Operating system: macOS
Software version: 2.6.0

Bug or support request description:

Hi there, I saw that the latest Python API was posted to PyPI, so I installed it to try out the new streaming feature.

It looks like there’s a few issues that I have been having that I wanted to report:

  • I think MOKU_CLI_PATH in moku/helpers/converter.py is not defined correctly, as it looks for the CLI of the moku by calling which mokucli, but the cli is defined to be called simply moku, as defined in the setup.py
  • If I update that to look for moku, then the streaming code will try to call moku convert --stdin --stdout. However, the CLI (in moku/cli.py) does not have the convert function defined, so this command fails
  • I changed the entire call to call the liconvert executable that I can download from the website, and this seems to run the stream correctly, I’m still not entirely sure how to access the stream data though, as using the get_stream_data method usually results in an error.
    • I’m guessing there will be some example code posted for this when the release is officially announced, and that’ll clear things up there

Let me know if I’m simply doing something wrong, looking forward to using the API streaming feature!

Thank you for testing out our new features right as they are released, it is much appreciated and helpful for us to make sure new features work for everyone! Unfortunately, it does look like there has been some unexpected issues with the data streaming feature as of now and you should expect to see an update pushed by the end of next week. We will also have documentation on our APIs reference page along with some examples by then as well, thank you for your patience.

Following up on this post:

We have released an update to the moku-python package that fixes the get_stream_data() issues. You can update your moku-python package in a terminal with

moku download --fw_ver=576

which should download the Moku API client 2.6.1 and 576 instrument data.

You will also need to download the mokucli client if you would like to use any command line tools (like the one above) which can be downloaded from our website here.