COMSOL program integration commands (mphstart, mphopen, mphload, etc.) are not recognized.

Currently, when I enter mphstart('standalone'), an error occurs. I have set the COMSOL server to port 2036 and added it to the environment variables, but I still get the following error message:
>> mphstart(2036,'standalone')
Error using mphstart
Port must be a number between 0 and 65535
However, in the COMSOL program and Windows settings, the COMSOL port number is confirmed to be 2036.
How can this issue be resolved?

4 件のコメント

Haelee
Haelee 2025 年 3 月 21 日
I am not very familiar with COMSOL, but I noticed when "mphstart" function recieve two input parameters, it sould be the IP address and the port number. This information is detailed in the COMSOL documentation, which can be found here: https://doc.comsol.com/5.6/doc/com.comsol.help.llmatlab/llmatlab_ug_start.5.05.html
Based on this, I assume the correct usage of the function might be:
mphstart('192.168.*.*', 2036)
Could you please confirm if you are aware of this requirement?
건목
건목 2025 年 3 月 21 日
I am using a standalone license, so there is no separate license server. However, following your excellent advice, I tried using the loopback IP address, but the same issue still persists.
Torsten
Torsten 2025 年 3 月 21 日
Walter Roberson
Walter Roberson 2025 年 3 月 21 日
Is the 'standalone' intended to be the comsolpath ? When the comsolpath is used, it must be the third input parameter to mphstart()

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

タグ

質問済み:

2025 年 3 月 20 日

コメント済み:

2025 年 3 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by