launching new instances of MATLAB with COM objects

조회 수: 5 (최근 30일)
ES
ES 2019년 10월 14일
Hello all,
I am trying to launch MATLAB application using a python script (for some automation).
I use Python 2.7, MATLAB R2016B
# Python code
from win32com.client import constants, Dispatch
oMatlabObj = Dispatch("matlab.application.9.1")
It opens MATLAB and performs the automation I expect well.
But, while this automation is running, I intend to open another MATLAB instance via COM and do some other stuff.
I try to run an other python script with the above lines. But it doesn't open a new matlab instance. Instead works on the old matlab instance.
How do i force COM to open a new MATLAB instance?

답변 (0개)

카테고리

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

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by