From: Leo Steenson on
I am currently writing a basic program to communicate to a micro-controller using Matlab. At the minute I can use the micro-controller to either act as a data acquisition unit and stream data into Matlab, or to act as a controller and manipulate actuators using commands sent from the Matlab interface.

Ideally I would like to combine the two into one so as to continually stream the data to the computer but also have the ability to send commands to the micro-controller. The problem lies in updating the variables (commands) once the data starts streaming as the program becomes busy. I would like it so that I can use the 'input' function to change the desired variables but without slowing or stopping the data stream.

I hope what I have said is clear. Any ideas how to do this?

Thanks,
Leo