Multiple Matlab version, DCOM config?

조회 수: 3 (최근 30일)
Joseph Gaglione
Joseph Gaglione 2025년 1월 3일
댓글: Walter Roberson 2025년 1월 7일
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
Joseph Gaglione
Joseph Gaglione 2025년 1월 7일
편집: Joseph Gaglione 2025년 1월 7일
It looks like comserver was avaliable starting in 2020b? I don't think this is the feature I was using in 2018b but I tried updating the user and admin registered versions but it doesn't seem to have had any effect.
Walter Roberson
Walter Roberson 2025년 1월 7일
For R2018b you would use "matlab -regserver" or regmatlabserver

댓글을 달려면 로그인하십시오.

답변 (1개)

Abhas
Abhas 2025년 1월 4일
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:
  1. Open the DCOM Configuration utility on the remote machine (Machine 2) by navigating to "Start" > "Control Panel" > "Administrative Tools" > "Component Services".
  2. In the DCOM Configuration utility, go to "Component Services" > "Computers" > "My Computer" > "DCOM Config".
  3. Locate "Matlab.Application.9.13" (for MATLAB R2022b) in the list, right-click it, and select "Properties".
  4. 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:
  1. https://www.mathworks.com/help/matlab/matlab_external/register-matlab-as-automation-server.html
  2. 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
Joseph Gaglione
Joseph Gaglione 2025년 1월 7일
I've made the update to the Identity to the Interactive User but the service is still connecting to the old clsid. Restarting and refeshing the service also had no effect.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by