필터 지우기
필터 지우기

Why is my shared matlab engine not accessible after few days?

조회 수: 4 (최근 30일)
Priteshkumar Gohil
Priteshkumar Gohil 2019년 6월 21일
편집: Priteshkumar Gohil 2021년 5월 12일
I share matlab engine from the command window to let other application connect and do something. I share it by writing
>> matlab.engine.shareEngine
in matlab command window and I check shared engine name by typing
>> matlab.engine.engineName
. Good thing is i'm able to find the session and can communicate with matlab from external application.
However, problem is if I don't close my matlab for 1-2 days and keep engine shared but not used by any application. So after 1 or 2 days I try to connect to shared matlab engine from external application, but i get error. Then I tried debugging in matlab to see shared engine name and this is what I have observed.
>> matlab.engine.shareEngine
Error using matlab.engine.shareEngine
The courrent MATLAB session is shared already.
>> matlab.engine.engineName
ans =
0x0 empty char array
Matlab version - R2018b
Thank you,
Pritesh Gohil

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by