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!