How can I visualize data with "Display" blocks inside a model reference when running a root-level model in external mode with Simulink Real-Time?

I have a model hierarchy that consists of a root-level model that contains some model references, and inside of the model references, I have some display blocks that are connected to some of my signals so I can visualize my data. If I run the root-level model locally then the "Display" blocks work correctly, however, if I run my root-level model in external mode with Simulink Real-Time then the "Display" blocks appear empty and show no value.
Is this expected behaviour?

 採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 9 月 14 日
This is expected behavior as visualizing data via a "Display" block inside a model reference is not supported when running the root-level model in external mode.
As a workaround to view the data, you can enable signal logging and view it using the Simulink Data Inspector. The documentation page on signal logging in Simulink and the Simulink Data Inspector are linked below:
Signal Logging:
Simulink Data Inspector
An alternative workaround is to use the "File Log" block which logs the signal at its input port to the target computer file system. The documentation link for the "File Log" block is linked below:

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Real-Time についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by