フィルターのクリア

Update app designer Text Area 'now' to mimic console output

42 ビュー (過去 30 日間)
Connor Fuhrman
Connor Fuhrman 2019 年 4 月 5 日
コメント済み: Jesse Lackey 2021 年 1 月 15 日
I have seen several people attempting to replicate the console output on their GUI using appdesigner. I have created a text area called SimulationConsoleOutputTextArea (for compactness let's call it CON) that I wish to use as my 'console'. Currently I have been succesful accessing the CON.Value (given as a cell array) and appending using CON.Value{end + 1} = 'What I want to say'.
This works well for appending one single line but I have not found a way to append in a loop. I am looking for something similar to a drawnow function for plotting within a loop. I want to force OUT.Value to be updated and reflected in the TextArea before continuing execution of the next command. Is there a command/method to accomplish this?? I am also open to other suggestions on emulating the command window within an appdesigner GUI.
  2 件のコメント
Austin Adam
Austin Adam 2020 年 1 月 16 日
Hey did you ever find a solution to this? I am looking to do the exact same thing but haven't found much about it online yet... Please let me know if you found anything!
Azad Jalali
Azad Jalali 2020 年 4 月 29 日
編集済み: Azad Jalali 2020 年 4 月 29 日
I'm starting to give up on the MATLAB App Designer when Mathworks can't serve basic needs like this. It's cute for small projects, but anything even moderately complex is a pain, especially if you're trying to make it standalone.

サインインしてコメントする。

回答 (1 件)

Azad Jalali
Azad Jalali 2020 年 4 月 30 日
Hi Connor,
I got lucky and stumbled on the drawnow command, which seems to force the GUI to update any values. See the code snippet below
app.TestOutputTextArea.Value = [app.TestOutputTextArea.Value; msg];
drawnow; % Force text area to update
% Continue doing things here

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by