How to suppress warning for commented out subsystems?

2 visualizaciones (últimos 30 días)
Thorsten Ott
Thorsten Ott el 29 de Ag. de 2023
Comentada: Thorsten Ott el 31 de Ag. de 2023
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?

Respuestas (1)

YASSINE
YASSINE el 29 de Ag. de 2023
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 comentarios
Thorsten Ott
Thorsten Ott el 30 de Ag. de 2023
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 el 31 de Ag. de 2023
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Subsystems en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by