How to suppress warning for commented out subsystems?

조회 수: 3 (최근 30일)
Thorsten Ott
Thorsten Ott 2023년 8월 29일
댓글: Thorsten Ott 2023년 8월 31일
I'm getting warnings for subsystems which are commented out.
As far as I understood the Simulink.SuppressedDiagnostic object warnings can be suppressed only for specific blocks.
Is there a way to suppress warnings for all subsystems which are commented out together?

답변 (1개)

YASSINE
YASSINE 2023년 8월 29일
You can configure the model from the Diagnostics pane. Choose 'Connectivity' and select the 'None' option for both 'unconnected block input ports' and 'unconnected block output ports'."
  댓글 수: 2
Thorsten Ott
Thorsten Ott 2023년 8월 30일
Thank you very much for your suggestion but that is not what I'm looking for because this would disable the warnings for all subsystems which are not commented out, too.
What I'm wondering about in general is, why Simulink does not ignore the subsystems which are commented out when building the model? Because this is the intention of commenting out in my understanding...
Thorsten Ott
Thorsten Ott 2023년 8월 31일
The cause for the question is solved. It was a mix of different circumstances which caused me to believe that commented-out subsystems are not ignored.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by