Apart from main program, executing function continuously GUI matlab.
이전 댓글 표시
Dear experts,
this is Carlos. Now, I'm programming a GUI in Matlab.
In this GUI, I have some buttons and static texts. Particularly, I would like to change the text of a static box continuously, i.e., regardless the changes made in the main program.
Concretely, this static box takes the values from other hardware. The values obtained from this hardware have to be shown constantly. Simultaneously this static box shows the values from the hardware, I would like to press other buttons and carry out other functions.
The concept I look for, probably, is a kind of parallel programming. However, I think an easier solution should have.
Thank you in advance.
Carlos.
댓글 수: 7
Carlos
2017년 2월 23일
Geoff Hayes
2017년 2월 23일
Carlos - you state that this static box takes the values from other hardware. How are you communicating, from within your GUI, to this other hardware? Do you have a timer that periodically communicates with this hardware? Please clarify and post some of your code.
Carlos
2017년 2월 24일
Walter Roberson
2017년 2월 24일
At the moment, I cannot think of any hardware that uses get() as the call to retrieve data. I can think of a number of other calls such as fread or fgets or readdigital, but none of the interfaces that come to mind use get(). What kind of hardware interface are you using?
Carlos
2017년 2월 24일
Geoff Hayes
2017년 2월 24일
Carlos - how is save_pos called? Is it from within your GUI or from the command line? Does it have a timer that periodically queries your device for the distance (or some other information)?
Walter Roberson
2017년 2월 24일
Carlos, you did not answer the question about what kind of hardware you are interfacing? I have most of the toolboxes and I checked all of the get() functions but get() does not fetch from hardware for any of the ones I have.
The reason that it is important is that there may be other ways of fetching your data asynchronously.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!