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!