Borrar filtros
Borrar filtros

Constantly updated gui question

2 visualizaciones (últimos 30 días)
matlabuseraa
matlabuseraa el 1 de Mayo de 2013
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

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 1 de Mayo de 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
  2 comentarios
matlabuseraa
matlabuseraa el 2 de Mayo de 2013
That was of great help thanks.
Feng
Feng el 21 de Jul. de 2013
Hi matlabuseraa,
Would you mind sharing how you updata the data property? I am kind of stuck there now.
Thanks,
Feng

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by