Matlab application closed at the end of a Python script
古いコメントを表示
I'm developing a Python script in Matlab to start an application and, after performing some actions, close it. The script is the following:
function test app = py.powerfactory.GetApplication(); py.eval('app.ActivateProject("Test_project")', struct('app', app)); py.eval('app.GetFromStudyCase("ComLdf")', struct('app', app)); py.eval('app.PostCommand("exit")', struct('app', app)); return
All the commands are executed without problems. However, when the script is terminated, Matlab stays busy for a while, then the application is closed apparently without any error message.
Any suggestion to solve this issue or to better understand its causes?
Thank you again for the help.
4 件のコメント
Robert Snoeberger
2016 年 3 月 2 日
What does the documentation for PostCommand("exit") say? Is there anything about exiting or terminating the process?
John D'Errico
2016 年 3 月 2 日
More explicitly, what does the documentation for the exit command suggest that it will do in MATLAB?
Davide
2016 年 7 月 1 日
Davide
2016 年 7 月 1 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Call Python from MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!