How can I comment out an outport in Simulink model?

조회 수: 23 (최근 30일)
Sebastian Inderst
Sebastian Inderst 2019년 7월 30일
답변: Marcelo Moraes 2022년 1월 11일
I have the case where a subsystem of my model can be commented out. In that case, the outports connected to the outputs of that subsystems will give a zero when the simulation is run. In my case, I don't want anything at all, since afterwards I'm checking if a given signal exists or not, and since a 0 was given, the signal seems to exist, but it should not.
If I simply use Ctrl+Shift+X (Comment Out) on the outport, I get the warning dialog "Commenting out of the following block(s) is not supported: my_model/my_outport".
Running on Matlab 2017b.

채택된 답변

Alex Burbee
Alex Burbee 2019년 7월 30일
In my exerience, you can deleate the out port or simply use a termination block where it comes out.
Hope it helps

추가 답변 (1개)

Marcelo Moraes
Marcelo Moraes 2022년 1월 11일
Indeed it is not supported, but it's very frustrating.
It's like trying to add a // in the begining of a C code line and being forced to delete it before compilation.

카테고리

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

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by