×
Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 109761656, Entry date: 12/03/2018
(1)
Rate

Realization of a SIMIT Shared Memory Coupling with Matlab

  • Entry
  • Associated product(s)
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:


Validation

  • SIMIT Simulation Platform V9.1
  • MATLBAB R2018a

Download
  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


Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.