フィルターのクリア

Timing in GUIde

2 ビュー (過去 30 日間)
John
John 2012 年 3 月 1 日
Hi, First of all I am new to using guide.
Here is my problem.
I am taking a screenshot of another program from a shared memory space using a MEX function that is being called from within the gui m file.
What I am currently doing is attempting to update the image shown on an axis in the gui every 10th of a second to represent video.
I do this through a check box. If the check box is clicked the axis is updated using a while loop. If it is not checked it stops updating.
My problem is that having a while loop locks out all the other controls.
Is there a way to set up a timer which can run in the background of the gui and allows me to call each screenshot load from an if statement rather than a while loop, so that the other functions work?
Thank you in advance.

採用された回答

Sean de Wolski
Sean de Wolski 2012 年 3 月 1 日
Don't use a while-loop, use a timer
doc timer
it'll do everything you ask of it.
  1 件のコメント
John
John 2012 年 3 月 1 日
Thanks,
I am now watching a nice introductory video for this.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by