Matlab engine freezes at MatlabEngi​ne::waitFo​rMatlab when trying to connect.

We are trying to use the matlab engine in our QT C++ application, through a PythonQT console. Normal python commands work from within the console, however when we attempt to connect to Matlab engine, it hangs at the function call MatlabEnginge::waitForMATLAB (see line 6 of tack trace, in attachment). We have a Matlab engine running and its engine is shared by calling
matlab.engine.shareEngine
On the PythonQT console, we connect to it by
eng = matlab.engine.connect_matlab('XXXX')
This results in the engine(?) freezing. I am attaching the stack trace as an attachment.
Note: We dont have a problem connecting to matlab engine directly from a generic python terminal. We only encounter this problem when we access it from within the PythonQT terminal.
Any help or pointers is appreciated :)
NT

댓글 수: 1

In my hands this behavior happens if a connection to the named session already exists. I can't as yet find a way for testing whether a session of this name already is connected.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

질문:

NT
2017년 3월 15일

댓글:

2023년 1월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by