Create a CMATLABProduction ServerClient
To create aMATLAB®Production Server™client:
Obtain the client runtime files installed in
.$MPS_INSTALL
/client/cIn consultation with the MATLAB programmer, agree on the MATLAB function signatures that comprise the services in the application.
Configure your system with the appropriate software for working with C/C++.
Initialize theMATLAB Production Serverclient runtime using
mpsInitializeEx()
.mpsClientRuntime* mpsruntime = mpsInitializeEx(MPS_CLIENT_1_1);
Create the client runtime configuration.
Create the client runtime context.
Create the required MATLAB data for the inputs and outputs of the function.
SeeData Handling.
Evaluate the MATLAB functions.
Handle any errors.
Free system resources by cleaning up all MATLAB data and terminating the client connection.
For a complete example of an implementing a C++ client, seeCreate a C++ Client.