The latest updates to the MOKU API for MATLAB are causing slowdowns and other problems when logging data and then using the command get_stream_data(). The data is slow to initiate and then only accessible the first time code is run, but requires a restart of MATLAB to start another stream. Without restart, the code hangs waiting to acquire data from the device when get_stream_data() executes. I have updated all software to the latest versions available from LiquidInstruments and MATLAB.
Apparently, despite relinquishing ownership of the MOKU:GO, the API cannot reconnect to the device because it seems to be waiting for the previous logging event to end even though it is over. The MOKU app shows the device no longer has an API connection. Using “clear all” at the command line allows a new data logging event to occur.
Thank you for your post. We are actively investigating the root cause of this issue. At this stage, it appears to be specific to macOS and MATLAB.
In the meantime, please run clear all before starting a new data streaming script to ensure that any persistent variables from the previous run are removed.
We apologise for the inconvenience and will provide an update here once a revised version is available.