I am making a GUI. GUI plots the data. While GUI is plotting the data, to avoid any manual intervention I want to lock GUI window till I get the plot. I have disabled all controls in GUI in plot function to lock GUI. But GUI is not locking properly.

1 ビュー (過去 30 日間)
As I mentioned in question I want to lock GUI while GUI is plotting the data, but I am not getting locking (disabling all controls in GUI) function properly. At start of plot function I have disabled all controls in GUI and at the ending of plot function I have enabled all disabled controls. I am expecting the flow like - GUI controls get disabled as soon as I pressed PLOT button, then GUI plots the data and then enable the controls again. But this is not happening. The plot function(plot button) disables all GUI controls when plot function is about to end, it is not locking all GUI controls as I pressed PLOT button

採用された回答

Anthony Poulin
Anthony Poulin 2015 年 6 月 24 日
Hello,
Can you put the command "drawnow", just after the function which disabled all controls and tell if it solve your problems?

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by