Continuously updating Edit Field in Designer GUI
4 views (last 30 days)
Show older comments
Hi,
I am trying to create a gui with edit field and graphs that will keep updating values from the matlab 'base' workspace until I stop it. However, I do not see any methods to do it. We can use the evalin to get value of a variable from workspace into GUI but I dont see anyway to updating it.
For example i want to passing the value of the variable i into the gui. I can use the following callback function for a push button.
app.EditField_7.Value = evalin('base','i');
but is there anyway to continously to updating the value into the gui rather than pressing the push button? I have try the state button and put the command the loop but it did not work.
Also any solution to plotting the graphs in real time using continous updating variable from the workspace?
Thank you very much,
0 Comments
Answers (1)
Walter Roberson
on 31 Aug 2022
You can create a timer object that continually gets new values from the base workspace and does whatever is appropriate with them.
However, it is not clear to me why you would do that, instead of having whatever process is changing the variables in the base workspace make the change to the properties.
See Also
Categories
Find more on Develop Apps Using App Designer 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!