Constantly updated gui question
3 次查看(过去 30 天)
显示 更早的评论
I need to have a gui which updates its output from constantly receiving serial communication. I have created a normal script in an infinite loop which updates variables depending on te serial input. How should i approach integrating it with the gui, i am using guide. Would i pass thr variables from workspace to gui or do i need to har all the code in the gui?
Thanks in advance , Adam
0 个评论
采纳的回答
Sean de Wolski
2013-5-1
Use a timer to scrape the serial port at fixed time intervals and have this update the '*Data' properties of the lines or other graphics objects in your GUI.
doc timer
2 个评论
Feng
2013-7-21
Hi matlabuseraa,
Would you mind sharing how you updata the data property? I am kind of stuck there now.
Thanks,
Feng
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!