How does transfer signals through store memory swapping in different software components? use the System Composer toolbox.

1 Ansicht (letzte 30 Tage)
Hi,
I am using System Composer to build software architecture and ultimately implement code generation.
My software architecture includes multiple parallel running tasks, and I use different components in the system composer to represent them.
Different components plan to use swapped memory for signal transmission. For example, the sensor module will receive data from external sensors for processing, and then transmit the processed signal to other tasks for calculation.
Our software architecture plan will be implemented using the following methods. Store memory and store write models were created in the sensor module for signal transmission. In the task module (task 2), use the store read module to read the signals written into memory by the sensor module.
However, during the simulation process, it was found that the data written by the sensor module could not be read in the task component. Is there any suggestion to implement this architecture?
Thanks,
  1 Kommentar
鑫鹏
鑫鹏 am 11 Mai 2024
I changed the software architecture and created two subsystems in the Simulink model within the same component, and then used the data store memory module again to achieve signal sharing between the two subsystems. Then, still use port and interface to pass messages between components. This strategy is feasible. Does this mean that the System Composer cannot support different components exchanging signals through shared memory?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Josh Kahn
Josh Kahn am 15 Mai 2024
Shared memory can be modeled using client server ports in the Software Architecture template in System Composer. I have a quick introduction here:
Hope this helps,
Josh
  2 Kommentare
鑫鹏
鑫鹏 am 24 Mai 2024
Thank you for your reply. It has been very helpful for me to adjust the software architecture. For the current situation, the interlocking mechanism between global variables has become a relatively difficult problem to handle.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu System Composer finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by