Invalid root outport block conection in the referenced model
6 views (last 30 days)
Show older comments
Hello, I got the enclosed trouble while trying to simulate my model. I use Simulink storage class. I'd like to understand the trouble to solve the issue. Thanks a lot,
0 Comments
Answers (1)
David Ding
on 31 Oct 2017
Hi Husson,
Thank you for sharing the screenshot for the error you are seeing. Without looking directly at your model, it is difficult to pinpoint directly the issue. However, given that this is a root outport block connection error, I can conjecture the following:
Your model likely violated one of the rules by muxing the outputs of two different blocks and feeding it directly to the outport. In Simulink, it is not allowed to have the following situation in your model: "A root Output port is connected directly or indirectly to more than one nonvirtual block port".
In order to resolve this problem, you can use one of the following two approaches:
1) Set the diagnostic 'Invalid root Inport/Outport block connection' to 'none', which will cause Simulink to automatically handle this kind of situations by inserting additional blocks. The diagnostic can be found under: Simulation > Model Configuration Parameters > Diagnostics > Model Referencing > Invalid root Inport/Outport block connection.
2) Insert a gain block with value 1 between the Mux and Outport block. This will make sure only one block is directly fed into the Outport.
Hope this helps.
Sincerely,
David
0 Comments
See Also
Categories
Find more on Configure and View Diagnostics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!