Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Solution to comsol giving "Server is in use by another client" error
Posted 28 set 2021, 07:19 GMT-4 LiveLink for MATLAB 6 Replies
Please login with a confirmed email address before reporting spam
The below post is related to an archived discussion
Hi Samuel,
I have found that adding pauses between execution lines in the script helps the script to run, in particular using try-catch statements so that if there is an error, get the script to pause for a few seconds and then run the same line again. I do this with an increasing pause until the pause length reaches a certain value when I assume that pausing the script before going again is not the solution.
I do not know why Comsol does this but I guess that what may be happening is that matlab moves on and tries to execute a new line when Comsol may still be running the line before. When this happens, Comsol gets confused and thinks that another client is trying to get it to do stuff, hence the error that you receive. But again, this may not be the problem, but just my best guess as to what is going on.
Hope that this is helpful,
All the best,
Tom