Pass GUI variables to base workspace in real-time
1 次查看(过去 30 天)
显示 更早的评论
HI all!
I'm building a GUI for automated measurements in our lab and when started I want some variables to be passed from the GUI to the base workspace in real-time for instant pre-analysis.
I’ve tried assignin() but for some reason nothing is passed to the base workspace until the test sequence is over or the test is stopped.
The GUI contains several loops and functions, and I want the variables to be updated at every iteration. How to do this?
To only use disp() or similar is not an option. I want the most recent variable content in the base workspace.
Thank you in advance!
/Jens
7 个评论
Walter Roberson
2013-3-7
If you are using Linux or OS-X as your OS, you would run VNC Server with particular ports mapped to permanent pseudo-windows or you would use VNC Server with ports mapped according to graphics resolution, and you would start MATLAB under "screen" and log in through the VNC session and use "screen" to connect to the existing session (using "screen" is more robust than VNC alone.)
If you are using MS Windows on the system you are running MATLAB on, then you would run the VNC Server as a task with desktop access.
回答(1 个)
nanren888
2013-3-7
Is the assignin() in a GUI callback? I guess these callbacks will not run, be queued if the main-line does nothing to let another thread get some time, eg drawnow, ... Can you see the callbacks running?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!