This example shows how SimWB can be used to generate code for Data Store blocks in a Simulink® model.
Data Store blocks allow you to share data globally across a model, without having to use source/sink blocks to transfer data between subsystems. The Data Store Memory, Data Store Read, and Data Store Write blocks are available in the Simulink > Signal Routing library.
To indicate that a Data Store Read/Write block must be converted to an RTDB variable,
specify a regular expression prefix in the block name.
For example, the following model prefixes the relevant block names with SW
.
signal.db
file for ccur_datastore_signal_typesPoints to note:
SW_C
and SW_C1
blocks both map to the RTDB variable C.
AI
) — If only Data Store Read blocks are specified for RTDB creation.
AO
) — If only Data Store Write blocks are specified for RTDB creation.
AIO
) — If both Data Store Read and Data Store Write blocks are specified for
RTDB creation.
Limitations:
Simulink®, developed by MathWorks, is a graphical modeling environment.