Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Create a C MATLAB Production Server Client

To create a MATLAB® Production Server™ client:

  1. Obtain the client runtime files installed in matlabroot/toolbox/compiler_sdk/mps_client/c.

  2. In consultation with the MATLAB programmer, agree on the MATLAB function signatures that comprise the services in the application.

  3. Configure your system with the appropriate software for working with C/C++.

  4. Initialize the MATLAB Production Server client runtime using mpsInitializeEx().

    mpsClientRuntime* mpsruntime = mpsInitializeEx(MPS_CLIENT_1_1);
  5. Create the client runtime configuration.

    See Configure the Client-Server Connection.

  6. Create the client runtime context.

    See Create the Client Runtime Context.

  7. Create the required MATLAB data for the inputs and outputs of the function.

    See Data Handling.

  8. Evaluate the MATLAB functions.

  9. Handle any errors.

    See Handle Function Processing Errors.

  10. Free system resources by cleaning up all MATLAB data and terminating the client connection.

    See Clean Up MATLAB Resources.

For a complete example of an implementing a C++ client, see Create a C++ Client (MATLAB Production Server).

Was this topic helpful?