Accessing Functions on MATLAB Production Server (MPS) from a MATLAB script
2 次查看(过去 30 天)
显示 更早的评论
I am investigating using MATLAB Production Server as a way to ensure everyone is using the same/latest version of a Simulink model or MATLAB function.
To my surprise I cannot find any documentation on how to call a function or model on an MPS instance from MATLAB itself.
I found documentation on how to do in Java, .NET, C and Python. https://www.mathworks.com/help/mps/client-programming.html
Does this feature exist and can someone point me to documentation on it?
0 个评论
采纳的回答
Matt C
2018-7-25
编辑:per isakson
2021-11-19
Based on the documentation for the MATLAB Production Server on the Mathworks site, particularly in the "Production Deployment of MATLAB Programs" section (found here: https://www.mathworks.com/products/matlab-production-server/features.html#integration-with-enterprise-applications), it looks like there isn't a built in client for calling a function on an MPS instance directly from MATLAB. It looks like there are only native clients written for the four languages you mentioned.
However, functions from an MPS instance can be called using the RESTful API and JSON. The documentation for that is found here: https://www.mathworks.com/help/mps/restful-api-and-json.html.
This is more of a workaround, but the API could probably be called directly from MATLAB using the webread and webwrite functions. The documentation for these two functions is below:
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!