Accessing Functions on MATLAB Production Server (MPS) from a MATLAB script

5 views (last 30 days)
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?

Accepted Answer

Matt C
Matt C on 25 Jul 2018
Edited: per isakson on 19 Nov 2021
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:

More Answers (1)

Thomas Michiels
Thomas Michiels on 9 Apr 2019
for extra information on everything around the data you should send:

Tags

Community Treasure Hunt

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

Start Hunting!