Realization of a SIMIT Shared Memory Coupling with Matlab
Principle of operation
SIMIT and MATLAB simultaneously use a reserved area in the main memory of the host system which is used for data exchange between the two programs.
By default, SIMIT provides a coupling to create or use a shared memory area. MATLAB doesn't have this functionality by default, but it does have a powerful API (Application Programming Interface) that you can use to create your own solutions for using shared memory. For this purpose, a C++ program is compiled to a MATLAB usable system function (S-Function).
The synchronization of the SIMIT Simulation Runtime with the solver of the MATLAB/SIMULINK model is assumed by an additional application. This application combines the functions of a SIMIT Remote Control Interface (RCI) client and the MATLAB API. This was created as a Windows Forms application in C#.
The following figure shows the data exchange between SIMIT an MATLAB:
- SIMIT Simulation Platform V9.1
- MATLBAB R2018a
Realization of a SIMIT Shared Memory Coupling with Matlab (1,8 MB)
Demo project SIMIT Shared Memory (1,6 MB)
SIMIT Simulation - Overview
Manual SIMIT Simulation Platform V9.1