Apart from main program, executing function continuously GUI matlab.
Mostra commenti meno recenti
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 Commenti
Carlos
il 23 Feb 2017
Geoff Hayes
il 23 Feb 2017
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
il 24 Feb 2017
Walter Roberson
il 24 Feb 2017
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
il 24 Feb 2017
Geoff Hayes
il 24 Feb 2017
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
il 24 Feb 2017
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.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Programming in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!