Reference models data exchange

3 visualizaciones (últimos 30 días)
Long
Long el 7 de En. de 2022
Respondida: Lokesh el 28 de Nov. de 2023
Hi all,
My system models have several referenced models, and I use non-virtual bus to exchange data between them.
However it seems to me that this is not a decent way of doing it, especially when the bus size got large.
Does anyone know a better way?
Thanks for viewing.
Cheers,
Ph

Respuestas (1)

Lokesh
Lokesh el 28 de Nov. de 2023
Hi Long,
As per my understanding, you have several referenced models in your system and need to exchange data between them.
As a workaround, you can consider using Simulink’s Global Data Store Memory blocks. These blocks facilitate data sharing across models without requiring explicit connections, making them particularly useful for sharing data across referenced models. When implementing data store memory for referenced models, we should implement using Simulink.Signal objects.
Please refer to the following MathWorks documentation links to know more about sharing data between referenced models using data stores.
I hope you find this helpful.
Best Regards,
Lokesh

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by