フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can I run a compiled GUI invisibly? When I do this, the program closes and shuts down).

1 回表示 (過去 30 日間)
Richard Garner
Richard Garner 2016 年 11 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have compiled a Matlab program to a standalone executable. Matlab program presents a GUI to the user. I would like to run the GUI invisibly (figure's visible property is 'off'). However, when I run program in deployed operation, program loads and starts to run, but then simply stops and shuts down (application no longer is running under windows). I can run it from within Matlab fine. Is there a way to do this in deployed operation?

回答 (1 件)

Jan
Jan 2016 年 11 月 8 日
Perhaps the function fails with an error? Insert a TRY-CATCH block and write an error message to a file.
There is no general restriction about the visibility of the figure. But it is not clear, why you create a figure at all when it is not shown.
  2 件のコメント
Richard Garner
Richard Garner 2016 年 11 月 8 日
Function does not give an error. It simply stops running. In other words, I double click on executable to start running it, it starts up, but remains invisible (because I set h.Visible='off', where h is a handle to the figure. Then program stops and disappears from system (not in Task Bar anymore -- this is on a Windows system). The person for whom I've written the program would like it to be invisible for various reasons. He then would shut it down from the Windows system. He calls it from another program in different software.
Richard Garner
Richard Garner 2016 年 11 月 8 日
Sorry, I meant Task Manager, not Task Bar

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by