This is very easy with some coding (I did it in C#, but VB or anything that can access windows API's)!
A Google search says MatLab can use CALLLIB perhaps?
- Open as many PicoScopes as you need, stop sampling and configure each as needed. (I had 10 instances to test)
- Write a script in your capable programming language to:
-- List all processes with PicoScope as a name. (I used GetProcessByName)
-- For each returned process, grab the window handle from its MainWindowHandle [don't ask!] (I used FindWindowEx)
-- Send a PostMessage to that handle a space key command - you need a KeyUp event to trigger correctly.
PicoScope only toggles start/stop - you cannot (that I see) use separate keys for start and stop, so you
need to make sure all instances match.