Constantly updated gui question

조회 수: 4 (최근 30일)
matlabuseraa
matlabuseraa 2013년 5월 1일
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

채택된 답변

Sean de Wolski
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
matlabuseraa
matlabuseraa 2013년 5월 2일
That was of great help thanks.
Feng
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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by