Serial Communication in GUI

조회 수: 1 (최근 30일)
Pritesh Shah
Pritesh Shah 2014년 8월 6일
댓글: Pritesh Shah 2014년 8월 6일
Hi, I have connected serial object in GUI and data is coming in text field in GUI. I want that this data should refresh in 10 second.

채택된 답변

Geoff Hayes
Geoff Hayes 2014년 8월 6일
Pritesh - you will need a timer to do this. See auto refresh of plot which can be adapted for a text field, or the FEX submission GUI examples and pay particular attention to the GUI_17 example.
By the way, is the data coming in from the serial object every ten seconds, or is just the desired refresh rate of the text field?
  댓글 수: 1
Pritesh Shah
Pritesh Shah 2014년 8월 6일
Thanks for your answer. It is desired refresh rate. Actually, I have connected MODbus protocol by serially and TCP/IP protocol. I created GUI for the same for utility purpose. I was not able to refresh the data from different address. Now, I got from your example. Mostly, it will work. I will try in hardware setup. Any issue, I will take help from you. Once again Thank you Very much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by