Parallel Computing

2 visualizaciones (últimos 30 días)
Kosai
Kosai el 19 de Jun. de 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 comentarios
Walter Roberson
Walter Roberson el 19 de Jun. de 2012
How are you playing the video at present?
Kosai
Kosai el 19 de Jun. de 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

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 19 de Jun. de 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.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by