How to deal with signal logging within a library block

7 ビュー (過去 30 日間)
Thomas Kotwal
Thomas Kotwal 2020 年 9 月 2 日
回答済み: Jemima Pulipati 2020 年 11 月 25 日
I'm developing Simulink library blocks, and during development and testing, it's convenient to enable logging on some signals. When the library block is placed in a model, is there a way to turn on/off logging for signals within that block? I'd rather the default be that the signals within the library block are not logged.
The reason for this is that when I use the library block in my main model, I don't want the internal signals logged. The main model contains many library blocks, and if all signals within all library blocks were logged, it would be overwhelming. However, I generally also create and maintain a separate test model for each library block, and I do want the interal signals logged in that model.
What is the best way to deal with this?
Thank you.

回答 (1 件)

Jemima Pulipati
Jemima Pulipati 2020 年 11 月 25 日
Hello,
From my understanding, you want to override the Signal Logging settings during simulation for a model.
The following links from the documentation may help you.

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by