Running Multiple Instances Of The Same GUI
Show older comments
Hello, I have couple questions pertaining to GUIs.
For a bit of background I created a simple GUI that connects to a camera using a MEX file. The idea behind the GUI is that you can open as many GUIs as you want and assign each GUI to a specific camera.
So far everything works great for taking single images, but for acquiring more video like functionality(only 1Hz is needed)I run into my first problem and possible solution.
When this video like functionality is activated, the GUI is set into a loop that simply squires a image and sends it to the GUI axes. This works great for one GUI, but when you go to do anything on another GUI you cannot since they are all run off the same instance of MatLab. Is their a easy way to boot up another instance of MatLab and have it open another camera GUI automatically via a command from a already running instance of MatLab?
If you can't boot it straight from another instance of MatLab, is their at least a way to boot up MatLab without having the main window visible?
For my second question, when I am acquiring an image their is text indicator that is suppose to light up to tell the user the camera is currently acquiring an image, but it doesn't light up right away like it should. Basically the acquire image function goes like this.
function acquireImage(source, eventdata,h)
set(h.info,'Visibility','on');
acquireImage();
"..Some Image processing functions"
set(h.info,'Visibility','off');
The visibility of my indicator doesn't actually turn on till after the acquireImage function is complete, why is that?
Thanks so much for your help! In return I will try and see if their is any other questions here that I could possibly answer.
Accepted Answer
More Answers (1)
Walter Roberson
on 20 Jul 2011
For your second question: after your call
set(h.info,'Visibility','on');
add a
drawnow()
call.
Categories
Find more on Image Acquisition Toolbox Supported Hardware 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!