Parallel Computing

2 views (last 30 days)
Kosai
Kosai on 19 Jun 2012
I have a GUI which contains 3 Compnents (Video-Win-Axes, Start-Button and Calc-Button). On the Video-Win-Axes my video Stream will be presented after clicking on Start-Button.
My Problem is that when i click on Calc-Button the Video Presentation on Video-Win-Axes is stoped until the Processes and Functions in Calc-Button are finished.
How could i get the Video Presentation on Video-Win-Axes continuously while the Processes and Functions in Calc-Button are running ? Thanks
  2 Comments
Walter Roberson
Walter Roberson on 19 Jun 2012
How are you playing the video at present?
Kosai
Kosai on 19 Jun 2012
imURL = 'http:\\192.168.0.0\snap.jpg';
while(true)
y = imread(imURL);
axes(handles.Video-Win-Axes); imshow(y);
/// if the Calc-Button was clicked the following Block of Code have to be excuted ....
myFun1();
myFunc2();
///////
end

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 19 Jun 2012
You will probably have to switch your video loop to having each frame being timer activated. Timers can interrupt .m files in-between lines -- but if the lines happen to involve intense calculations then it could potentially be rather some time inside any line, so this is not a robust approach.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!