mwArray
API Shared Library IntegrationmwArray
APIThe C++ mwArray
API supports only C++03 functionality. C++
shared libraries that use the mwArray
API have an interface
that uses C-style functions to initialize the MATLAB Runtime, load the packaged MATLAB functions into the MATLAB Runtime, and manage data that is passed between the C++ driver code and
MATLAB Runtime. These functions are described under C/C++
API. The functions listed under C++
mwArray
API are
specific to the mwArray
API and cannot be used for shared
libraries created for other APIs.
mbuild | Compile and link source files against MATLAB generated shared libraries |
mclmcrInitialize | Initialize the MATLAB Runtime proxy library |
mclInitializeApplication | Set up application state shared by all MATLAB Runtime instances created in current process |
mclTerminateApplication | Close MATLAB Runtime-internal application state |
<library>Initialize[WithHandlers] | Initialize MATLAB Runtime instance associated with
|
<library>Terminate | Free all resources allocated by MATLAB Runtime instance
associated with
|
mclRunMain | Mechanism for creating identical wrapper code across all platforms |
mclIsMCRInitialized | Determine if MATLAB Runtime has been properly initialized |
mclWaitForFiguresToDie | Enable deployed applications to process graphics events, enabling figure windows to remain displayed |
mclGetLastErrorMessage | Last error message from unsuccessful function call |
mclGetLogFileName | Retrieve name of log file used by MATLAB Runtime |
mclIsJVMEnabled | Determine if MATLAB Runtime was started with instance of Java Virtual Machine (JVM) |
mclIsNoDisplaySet | Determine if -nodisplay mode is enabled |
mwArray | Class used to pass input/output arguments to C++ functions generated by MATLAB Compiler SDK |
mwException | Exception type used by the mwArray API
and the C++ interface functions |
mwString | String class used by the mwArray API
to pass string data as output from certain methods |
Generate a C++ mwArray API Shared Library and Build a C++ Application
Create a C++ mwArray API shared library from MATLAB code using the Library Compiler and implement it with sample C++ driver code.
Configure the mbuild Options File
How to configure the mbuild
options file.
Call MATLAB Compiler SDK API Functions from C/C++
Use MATLAB Compiler SDK™ API functions for C/C++ to assimilate shared libraries in driver code.
Integrate C++ Shared Libraries
Create and distribute C++ shared libraries that use the mwArray
API.
Use Multiple Shared Libraries in Single Application
Use multiple generated shared libraries in a single C/C++ application.
MATLAB Runtime Path Settings for Development and Testing
Path settings to develop and test applications containing packaged MATLAB code.
MATLAB Runtime Startup Options
Set MATLAB Runtime options, such as -nojvm
,
-nodisplay
, or -logfile
.
MATLAB Runtime Component Cache and Deployable Archive Embedding
Override the default archive embedding behavior, and use MATLAB Runtime component cache.