Invalid root outport block conection in the referenced model
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
David Ding
2017-10-31
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Configure and View Diagnostics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!