MATLAB Answers

1

How can I comment out an outport in Simulink model?

Asked by Sebastian Inderst on 30 Jul 2019
Latest activity Answered by Alex Burbee on 30 Jul 2019
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.

  0 Comments

Sign in to comment.

Products


Release

R2017b

1 Answer

Answer by Alex Burbee on 30 Jul 2019
 Accepted Answer

In my exerience, you can deleate the out port or simply use a termination block where it comes out.
Hope it helps

  0 Comments

Sign in to comment.