Multiple Matlab version, DCOM config?
Afficher commentaires plus anciens
I currently have a machine running Matlab 2018b that I'm connection to using a WCF service to execute code and I see the DCOM config as Matlab.Application 9.5. However when I also installed Matlab 2022b I now also see Matlab.Application 9.13 but the service is still connecting to the 9.5 CLSID. Is there a way to set the 9.13 version as the preference or do I need to uninstall 2018 and thus remove the 9.5?
3 commentaires
Joseph Gaglione
le 7 Jan 2025
Modifié(e) : Joseph Gaglione
le 7 Jan 2025
Walter Roberson
le 7 Jan 2025
For R2018b you would use "matlab -regserver" or regmatlabserver
Réponses (1)
Abhas
le 4 Jan 2025
0 votes
To configure your WCF service to prefer MATLAB 2022b (Matlab.Application 9.13) over MATLAB 2018b (Matlab.Application 9.5), you can follow these steps:
- Open the DCOM Configuration utility on the remote machine (Machine 2) by navigating to "Start" > "Control Panel" > "Administrative Tools" > "Component Services".
- In the DCOM Configuration utility, go to "Component Services" > "Computers" > "My Computer" > "DCOM Config".
- Locate "Matlab.Application.9.13" (for MATLAB R2022b) in the list, right-click it, and select "Properties".
- In the Properties window, navigate to the "Identity" tab, select "The Interactive User", and click "OK" to save the settings.
You may refer the below documentation and MATLAB Answers link to know more about the same:
- https://www.mathworks.com/help/matlab/matlab_external/register-matlab-as-automation-server.html
- https://www.mathworks.com/matlabcentral/answers/102255-how-can-i-make-a-dcom-server-instance-of-matlab-visible?s_tid=answers_rc1-2_p2_MLT
I hope this helps!
1 commentaire
Joseph Gaglione
le 7 Jan 2025
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!