Sending data from a function to GUI while the function is running

Hi,
I have a GUI which calls a function. The function reads data from a RS-232 instrument, until a stable value is obtained. Once the value is stable, the functions returns it to the GUI. Is there a way to send data from the function to the GUI and show it, while the function is still running? I would like to be able to monitor the values that pass through the function before it finds the stable value.
Thanks, Eyal

3 件のコメント

Amjad Green
Amjad Green 2018 年 2 月 21 日
open your figure in guide and add a uitable to it,, set(handles.uitable1,'data',dataX) pause(0.1);
Eyal Wurgaft
Eyal Wurgaft 2018 年 2 月 21 日
Thanks Amjad, How can I set the GUI's handles while the function is running? Do I need to send it as input to the function? Eyal
Greg
Greg 2018 年 2 月 21 日
Have the input (or one of) to the function be the uicontrol handle from the GUI. Other than that, what Amjad said, except use drawnow instead of pause(0.1).

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

その他の回答 (0 件)

カテゴリ

質問済み:

2018 年 2 月 21 日

回答済み:

2018 年 2 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by