Memory Mapped File

The “Memory Mapped File” hardware is used, for example, to simulate an interface via the main memory. Each DataBlock is stored in a separate memory mapped file. To simulate the data exchange, the same configuration can be used on a computer, only with reversed in/out data.

../../../_images/gio-memmap-CreateNewHW.png
  1. Type: Memory mapped file (RAM)

  2. ID: ID assigned

  3. name suffix: Name control

  4. Create: Press button to generate object

  5. DisplayName: Name control

  6. +: Adding data areas to be used for communication

../../../_images/gio-memmap-CreateNewHW-EditDatablock.png
  1. DataBlockID: ID for this data block.

  2. Length: Length of the data area

  3. Name: Name of the data area

  4. Create: Specifies whether to create the memory-mapped file if it does not exist.

  5. MappingObjectName: System global name of the memory mapped file.

  6. SimTimeRead/Write: Simulation time in [ms] for read or write accesses.

  7. Timeout: Maximum waiting time in [ms] for access to the memory mapped file. (The accesses to the memory are protected from simultaneous access by the GInOut via a system global mutex per memory mapped file).