I have two Picoscopes connect to the same PC. One is a 5444B and the other one a 5444A.
I was trying to read blocks from both of them (which worked well) but I find that whenever I disconnect the first scope, Matlab freezes. I was able to reduce the issue to the following bare bones code:
The Instrument Driver does not currently fully support multiple oscilloscopes, partly the Disconnect code unloads the ps5000a and ps5000aWrap libraries after closing the connection to the unit. This means that once the first device has been disconnected, the lockup occurs because the libraries are no longer loaded in the MATLAB environment.
There is a potential workaround which involves calling the shared library API function to close the connection directly instead of using disconnect():