GUIDE Flow and Functions
12 次查看(过去 30 天)
显示 更早的评论
I am using GUIDE to create a UI.
How can I create functions that run in the background? I assume the program loops through checking for UI events related to the listed callbacks, however I would also like to have functions that run independently of user interaction.
I only know of the timer object, but I may also like to have functions that are conditionally run etc. or just at a predetermined order in program flow.
Is there any way of doing this without coding the app programatically, as we would like to expedite the GUI by using GUIDE?
Cheers
7 个评论
Geoff Hayes
2018-2-15
编辑:Geoff Hayes
2018-2-15
Martin - could you use a timer to communicate with your serial port object? The timer could be started and stopped from within the GUI, and would continuously poll (?) your serial port object for new data. See https://www.mathworks.com/matlabcentral/answers/284202-how-to-plot-a-real-time-signal-with-axes-automatically-updating for an example.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!