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.
- https://www.mathworks.com/help/simulink/slref/using-data-stores-across-multiple-models.html
- https://www.mathworks.com/help/simulink/ug/share-data-with-other-matlab-system-blocks.html
I hope you find this helpful.
Best Regards,
Lokesh
