.NET Client Programming - MATLAB & Simulink (original) (raw)

The MATLAB® Production Server™ .NET client API allows you to evaluate MATLAB functions on remote servers using native .NET data. The .NET client API offers the following two workflows for client-server communication.

One workflow hides the implementation details of request creation and data serialization when evaluating MATLAB functions deployed on servers. This workflow uses theMWHttpClient class and lets you choose between the following two styles of APIs to evaluate a MATLAB function.

The other workflow uses the MATLAB Production Server RESTful API for MATLAB Function Execution for MATLAB function execution for request creation and protocol buffers (protobuf) for data serialization. Protocol buffers are a language-neutral and platform-neutral method of serializing structured data. The MATLAB Production Server .NET client library provides helper classes to internally create protobuf messages and deserialize protobuf responses.

In an on-premises MATLAB Production Server installation, the client APIs are located in_`$MPSINSTALL`_/client, where_`$MPSINSTALL`_ is the MATLAB Production Server installation location. The client APIs are also available for download at MATLAB Production Server Client Libraries. The Java® client API is also hosted in a Maven™ repository at https://mvnrepository.com/artifact/com.mathworks.prodserver/mps_java_client.