How to call a centralized class from multiple deployed applications

I have a situation where I have a centralized class of static functions that are called by multiple deployed applications. Currently, if I have to update something in that class, I then have to re-deploy all of these applications. Is it possible to have the deployed applications reference the class as an m-file or a p-file so that I only have to update the centralized class instead of all of the applications as well?

댓글 수: 2

How would it help? Wouldn't you still have to deploy updated class definition mfiles or pfiles to all your sites?
I currently have over 30 deployed applications that are in use by our production floor. I've recently started to convert most of these to use a centralized class so that I can help make sure all applications are performing similar measurements the same way. If I find a bug or an issue in the centralized class, while it makes it easy to generate new compiled installers, I still have to go through hours of documentation and Engineering Change Orders to get those released for use. If it I could release the class itself and have those applications refer to it, then it would be a single change order and the update would automatically be pulled in to each deployed application.
Looking through a few other answers, it appears it's not possible. Again, I want my deployed application to reference an external m-file or p-file that I could update without having to re-deploy my applications (deployed application references function in external file rather than in compiled application).

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

답변 (1개)

Matt J
Matt J 2025년 3월 13일
편집: Matt J 2025년 3월 13일

0 개 추천

If the platform is Windows then, according to ChatGPT, you can deploy the class as a COM server, so that another deployed MATLAB app (or even a different application) can create and control an instance of it using actxserver.

카테고리

도움말 센터File Exchange에서 Manage Products에 대해 자세히 알아보기

제품

릴리스

R2024b

질문:

2025년 3월 13일

편집:

2025년 3월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by