Effacer les filtres
Effacer les filtres

Matlab application closed at the end of a Python script

2 vues (au cours des 30 derniers jours)
Davide
Davide le 2 Mar 2016
Commenté : Davide le 1 Juil 2016
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 commentaires
Davide
Davide le 1 Juil 2016
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 le 1 Juil 2016
The same issue occurs also with the script: function test app = py.powerfactory.GetApplication(); clear app return

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by