I'm using Matlab 2012a and Comsol 4.3 under Win7 (x64) and I'm trying to automate the process of opening, exporting and importing an .mph file to comsol server. It is a more complex processing, including Matlab, but I'll try to simplify the steps, in order to get just the commands I need:
Scenario:
1) Start Comsol
2) Open .mph file (File -> Open)
3) Start comsolserver
4) Export model to server (File -> Client Server -> Export Model to Server...)
5) Import model from server (File -> Client Server -> Import Model from Server...)
For the first 3 steps I managed to use:
1+2) comsol -open <filename>
C:\Program Files\COMSOL\COMSOL43\bin\win64>comsol -open E:\filename.mph
[unfortunately with GUI]
3) comsolserver
C:\Program Files\COMSOL\COMSOL43\bin\win64>comsolserver
Port number 2036 was busy, using 2037 instead
COMSOL 4.3 (Build: 151) started listening on port 2037
Use the console command 'close' to exit the application
Is it possible to open a file (step 2) without GUI (as comsol matlab -nodesktop option)? Also, how can I import/export files using Windows command line (steps 4 and 5)?
Scenario:
1) Start Comsol
2) Open .mph file (File -> Open)
3) Start comsolserver
4) Export model to server (File -> Client Server -> Export Model to Server...)
5) Import model from server (File -> Client Server -> Import Model from Server...)
For the first 3 steps I managed to use:
1+2) comsol -open <filename>
C:\Program Files\COMSOL\COMSOL43\bin\win64>comsol -open E:\filename.mph
[unfortunately with GUI]
3) comsolserver
C:\Program Files\COMSOL\COMSOL43\bin\win64>comsolserver
Port number 2036 was busy, using 2037 instead
COMSOL 4.3 (Build: 151) started listening on port 2037
Use the console command 'close' to exit the application
Is it possible to open a file (step 2) without GUI (as comsol matlab -nodesktop option)? Also, how can I import/export files using Windows command line (steps 4 and 5)?