How to call a centralized class from multiple deployed applications

3 次查看(过去 30 天)
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
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.

类别

Help CenterFile Exchange 中查找有关 Manage Products 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by