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

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:


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


安全性信息
为了保护技术基础设施、系统、机器和网络免受网络威胁,有必要实施并持续维护一个全面、最先进的IT安全方案。西门子的产品和解决方案构成了这一方案的一个要素。有关网络安全的更多信息,请访问
https://www.siemens.com/cybersecurity#Ouraspiration.