Hello Dong Liu
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
May 23, 2014, 7:41 a.m. EDT
I've got the same problem, have you found a solution yet?
I've got the same problem, have you found a solution yet?
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
May 23, 2014, 9:06 a.m. EDT
I'm using COMSOL4.4 and Matlab 2007b by the way, maybe there's aproblem with the version?
I'm using COMSOL4.4 and Matlab 2007b by the way, maybe there's aproblem with the version?
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 29, 2014, 11:17 a.m. EDT
Same problem here. Have you found a solution?
I tried it with comsol 4.4, both version 195 and 248 and tried it with Matlab 2012b and 2014a, and, it doesn't work on multiple PCs. The shortcut Comsol 4.4 with matlab does function properly, but I cannot use that on our remote machine. Also Comsol 4.3b connects without any problem using mphstart.
The comsol server console doesn't show any evidence of a connection being attempted. But the port is open according to "netstat -a".
No luck yet.
Same problem here. Have you found a solution?
I tried it with comsol 4.4, both version 195 and 248 and tried it with Matlab 2012b and 2014a, and, it doesn't work on multiple PCs. The shortcut Comsol 4.4 with matlab does function properly, but I cannot use that on our remote machine. Also Comsol 4.3b connects without any problem using mphstart.
The comsol server console doesn't show any evidence of a connection being attempted. But the port is open according to "netstat -a".
No luck yet.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 31, 2014, 2:15 a.m. EDT
No, I did not find a solution. In the end, I just decided not to use the Matlab connection. I suspected it was because of my MATLAB version, someone else started it with a newer version an another PC and it worked. So I'm sorry I can't be of help.
No, I did not find a solution. In the end, I just decided not to use the Matlab connection. I suspected it was because of my MATLAB version, someone else started it with a newer version an another PC and it worked. So I'm sorry I can't be of help.
Please login with a confirmed email address before reporting spam
Posted:
10 years ago
Feb 11, 2015, 8:26 a.m. EST
Any solutions ? Same problem here.
Any solutions ? Same problem here.
Please login with a confirmed email address before reporting spam
Posted:
10 years ago
Apr 20, 2015, 9:37 a.m. EDT
Did u solve the problem? Exactly the same problem here. It is the third time it happens. I reinstalled it twice before, but it was really not an efficient way.
Did u solve the problem? Exactly the same problem here. It is the third time it happens. I reinstalled it twice before, but it was really not an efficient way.
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
Aug 25, 2015, 4:05 p.m. EDT
Any chance that an expert answers this trend? I'm getting the same message on my Matlab CmdWin:
************
Error using mphstart (line 152)
A connection to Comsol could not be established. Please check that a Comsol Server is started prior to calling mphstart
************
even if the server has been previously started...
Any chance that an expert answers this trend? I'm getting the same message on my Matlab CmdWin:
************
Error using mphstart (line 152)
A connection to Comsol could not be established. Please check that a Comsol Server is started prior to calling mphstart
************
even if the server has been previously started...
Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
Sep 8, 2015, 3:24 a.m. EDT
Hi
There are a number of reasons why using mphstart may fail.
The most common problem is the use of a firewall that prevent the connections. You should also use a recent version of Matlab. The currently supported versions are listed here:
www.comsol.com/system-requirements/module
You can use older versions than the recommended, but some functionality may not work. Matlab versions older than R2010a are known NOT to work.
If you have problems with mphstart then send a mail to support. Please write what operating system you are using and what version of Matlab you have.
--
Lars Gregersen
Comsol Denmark
Hi
There are a number of reasons why using mphstart may fail.
The most common problem is the use of a firewall that prevent the connections. You should also use a recent version of Matlab. The currently supported versions are listed here:
http://www.comsol.com/system-requirements/module
You can use older versions than the recommended, but some functionality may not work. Matlab versions older than R2010a are known NOT to work.
If you have problems with mphstart then send a mail to support. Please write what operating system you are using and what version of Matlab you have.
--
Lars Gregersen
Comsol Denmark
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
Sep 19, 2015, 12:27 p.m. EDT
Hi I have met the same problem and finally found a solution..
If your condition is the same as me then it must be all fine when you call mphstart for the first time.
The problem happens when the first run is terminated and you want to call mphstart to connect again.
The reason of termination could be that you run ModelUtil.disconnect, or the comsolmphserver is for some reason terminated unexpectedly.
For both condition, before you call mphstart, you should call ModelUtil.clear and got a java exception. Then everything goes well.
I don't know why but it does work. It seems the first run has left something under the ModelUtil object which can inhibit your second connection.
Hi I have met the same problem and finally found a solution..
If your condition is the same as me then it must be all fine when you call mphstart for the first time.
The problem happens when the first run is terminated and you want to call mphstart to connect again.
The reason of termination could be that you run ModelUtil.disconnect, or the comsolmphserver is for some reason terminated unexpectedly.
For both condition, before you call mphstart, you should call ModelUtil.clear and got a java exception. Then everything goes well.
I don't know why but it does work. It seems the first run has left something under the ModelUtil object which can inhibit your second connection.
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
Nov 19, 2015, 10:47 a.m. EST
For both condition, before you call mphstart, you should call ModelUtil.clear and got a java exception. Then everything goes well.
ModelUtil.clear not working for me:
>> import com.comsol.model.*
>> import com.comsol.model.util.*
>> ModelUtil.clear
Undefined variable "ModelUtil" or function "ModelUtil.clear".
>>mphstart
or even
>> ModelUtil.clear
Undefined variable "ModelUtil" or function "ModelUtil.clear".
>>mphstart
>> import com.comsol.model.*
>> import com.comsol.model.util.*
[QUOTE]
For both condition, before you call mphstart, you should call ModelUtil.clear and got a java exception. Then everything goes well.
[/QUOTE]
ModelUtil.clear not working for me:
>> import com.comsol.model.*
>> import com.comsol.model.util.*
>> ModelUtil.clear
Undefined variable "ModelUtil" or function "ModelUtil.clear".
>>mphstart
or even
>> ModelUtil.clear
Undefined variable "ModelUtil" or function "ModelUtil.clear".
>>mphstart
>> import com.comsol.model.*
>> import com.comsol.model.util.*