Constantly updated gui question

4 views (last 30 days)
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

Accepted Answer

Sean de Wolski
Sean de Wolski on 1 May 2013
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
Feng on 21 Jul 2013
Hi matlabuseraa,
Would you mind sharing how you updata the data property? I am kind of stuck there now.

Sign in to comment.

More Answers (0)


Find more on Migrate GUIDE Apps 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!

Translated by