How do I disable warnings about scope signals in referenced models (Simulink)?

3 ビュー (過去 30 日間)
Matt
Matt 2013 年 11 月 8 日
コメント済み: Matt 2013 年 11 月 19 日
Using Simulink in Matlab 2011b, I get warnings like the following:
tb_SAR_ADC8x/Model|SAR_ADC8X/Model5: Warning: The model 'SAR_ADC_flat' is referenced in Normal mode
and contains the Signal Viewer scope 'SAR_ADC_flat/Scope'. This scope can display signals only if the
scope is already open when simulation begins.
I want to keep my scope signals in the sub-models for debugging them, yet I am ok that I don't see them when I reference these models in a higher level model. But I don't want a ton of useless warnings about it.
I've tried to turn off these warnings by setting Configuration...->Diagnostics->Model Referencing->Unsupported Data Logging to 'none', which from the docs seemed like it concerned signals sent to a scope too. But this brought me no luck.
Any idea how to get rid of these warnings in referenced models, hopefully without removing all the signals from the scope in the referenced model?
thanks, Matt

採用された回答

Zack Peters
Zack Peters 2013 年 11 月 9 日
Hi Matt,
If you cannot find it within the model's configuration parameters -> diagnostics pane, then I would take a look at our documentation and examples on "Suppressing Warnings".
~Zack
  2 件のコメント
Matt
Matt 2013 年 11 月 19 日
Thanks! I used the technique on the "Suppressing Warnings" doc that you linked to. It's a very general and broadly-useful mechanism I didn't know about before.
Matt
Matt 2013 年 11 月 19 日
btw I put this in startup.m:
warning('off','Simulink:Logging:WarnScopeIsClosedInMdlRefNormalMode');

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Environment Customization についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by