How to Multithread GUI windows?

4 views (last 30 days)
Mark
Mark on 1 Jul 2013
Hello, I have created a GUI that receives data form UDP sockets, and then displays that data. When the user wishes to view a particular area in more detail they can click on one of the buttons I have created. This then launches another window (actually its an entirely new GUI), that shows the data in greater detail. To this point everything works, EXCEPT that the main GUI hangs while the second is in operation. Now I expect this behavior from a single threaded program, as the main GUI is waiting on the button call back function to complete. I should note that the 2 GUI's are completely separate and do not share any data.
My question is, how do I fork that second GUI into its own process? This I guess would be analogous to spawning a new thread with its own stack size and priority in C, that windows would then service. The behavior I am looking for is, upon button press, the second GUI will launch into its own process and not interfere with the main GUI's operation. I have tried matlabpool, batch, spmd, and parfor without success, although I admit I may have not used them correctly. Any help you can offer would be appreciated. Thank you for your time.
Respectfully
mark
windows XP 32 bit MATLAB R2013a

Answers (0)

Categories

Find more on Graphics Objects in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!