Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Enterprise Deployment with MATLAB Production Server

Run MATLAB® code on a server and access it using various clients

MATLAB Production Server™ let's you run MATLAB functions on a server and access them via client applications. You create applications in MATLAB, package them using the Production Server Compiler app in MATLAB Compiler SDK™, and deploy them to the MATLAB Production Server. Deployed packages can be accessed by client applications written in Java®, .NET, Python®, C and C++ using client-specific libraries or through a HTTP/HTTPS endpoint using the RESTful API.

For information on how to write client applications using the RESTful API, Java, .NET, Python, C and C++, see Client Programming (MATLAB Production Server).

Apps

Production Server CompilerPackage MATLAB programs for deployment to MATLAB Production Server

Functions

expand all

productionServerCompilerTest, build and package functions for use with MATLAB Production Server
mps.json.encodeConvert MATLAB data to JSON text using MATLAB Production Server JSON schema
mps.json.decodeConvert a character vector or string in MATLAB Production Server JSON schema to MATLAB data
mps.json.encoderequestConvert MATLAB data in a server request to JSON text using MATLAB Production Server JSON schema
mps.json.decoderesponseConvert JSON text from a server response to MATLAB data

Controller

mps.cache.controlCreate a persistence service controller object
startStart a persistence service and attach it a to MATLAB session
stopStop a persistence service and detach it from a MATLAB session
restartRestart a persistence service and attach it to a MATLAB session
attachConnect a MATLAB session to a persistence service that is already running
detachDisconnect MATLAB session from a persistence service that is already running
pingTest whether the persistence service is reachable
versionVersion number for persistence provider

Cache

mps.cache.connectConnect to cache, or create a cache if it doesn't exist
bytesReturn the number of bytes of storage used by value stored at each key
clearRemove all keys and values from cache
flushWrite all locally modified keys to the persistence service
getFetch values of keys from cache
getpGet the value of a public cache property
isKeyDetermine if the cache contains specified keys
keysGet all keys from cache
lengthNumber of key-value pairs in the data cache
purgeFlush all local data to the persistence service
putWrite key-value pairs to cache
removeRemove keys from cache
retainStore remote keys from cache locally or return locally stored keys

Mutex

mps.sync.mutexCreate a persistence service mutex
acquireAcquire advisory lock on persistence service mutex
ownCheck ownership of advisory lock on a persistence service mutex object
releaseRelease advisory lock on persistence service mutex

Objects

expand all

mps.cache.ControllerManage the life cycle of a persistence service in a MATLAB testing environment
mps.cache.DataCacheRepresent cache concept in MATLAB code
mps.sync.TimedMATFileMutexRepresent a MAT-file persistence service mutex
mps.sync.TimedRedisMutexRepresent a Redis persistence service mutex

Topics

Deployable Archive Creation

Create a Deployable Archive for MATLAB Production Server

Learn how to create a deployable archive for MATLAB Production Server using a MATLAB function.

Client Prototypes

Create a Java Client

Learn how to call a MATLAB function deployed to MATLAB Production Server from a Java application.

Create a C# Client

Learn how to call a MATLAB function deployed to MATLAB Production Server from a C# application.

Create a Python Client

Learn how to call a MATLAB function deployed to MATLAB Production Server from a Python application.

Create a C++ Client

Learn how to call a MATLAB function deployed to MATLAB Production Server from a C++ application.

Testing

Test Client Data Integration Against MATLAB

Testing the integration code used by your client against MATLAB provides tools for seeing the data that is passed into the MATLAB function

Excel Add-Ins

Create and Install a Deployable Archive with Excel Integration For MATLAB Production Server

Learn how to create a deployable archive with Excel® integration for MATLAB Production Server using a MATLAB function.