필터 지우기
필터 지우기

Matlab application closed at the end of a Python script

조회 수: 2 (최근 30일)
Davide
Davide 2016년 3월 2일
댓글: Davide 2016년 7월 1일
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
Davide
Davide 2016년 7월 1일
I think the problem is not caused by the exit command, because the same behaviour is obtained with the script:
function test app = py.powerfactory.GetApplication(); return
Davide
Davide 2016년 7월 1일
The same issue occurs also with the script: function test app = py.powerfactory.GetApplication(); clear app return

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by