Hello.
I would suggest doing the recording in the background using a single MATLAB worker with a single task. You can set up a timer within that task if you want to do this recording at a consistant interval (i.e. record and save every 30 seconds). This way you can use the client MATLAB to do your interactive data processing.
At some point you need to end your task, you can set a total time at which you want the task to stop using something like a while statement.
These documentation links may be able to help you:
Hope this helps.
Cheers,
Sarah
