Siemens Industry Online Support
Siemens AG
文档类型 应用与工具 文档编号 109761656, 文档发布日期 2018年12月3日

Realization of a SIMIT Shared Memory Coupling with Matlab

  • 文档
  • 涉及产品
With SIMIT's Shared Memory Coupling (SHM Coupling), flexible and high-performance interfaces between SIMIT and other applications can be implemented on the same system. This application example shows you, how to configure a SHM coupling for data transfer between SIMIT and MATLAB and the synchronization of both applications during the simulation.

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)
 Registrierung notwendig  Demo project SIMIT Shared Memory (1,6 MB)

Further informations

SIMIT Simulation - Overview
Manual SIMIT Simulation Platform V9.1 
MathWorks MATLAB