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 件のコメント

Matt J
Matt J 2025 年 3 月 13 日
How would it help? Wouldn't you still have to deploy updated class definition mfiles or pfiles to all your sites?
Brian
Brian 2025 年 3 月 13 日
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 ExchangeManage 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