Goto/From connections cannot cross nonvirtual subsystem boundaries. The only exception is when a goto is connected to a state output port
147 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have goto Tags placed within a Triggered subsystem, with their corresponding from Tags in the highest level of the simulink model.
However, I received the error 'Goto/From connections cannot cross nonvirtual subsystem boundaries. The only exception is when a goto is connected to a state output port'.
May I know how can I go about solving this problem?
Any help is greatly appreciated!
Best Regards, Rachel
1 个评论
回答(1 个)
Guy Rouleau
2012-5-25
The error message is clear... don't place GoTo block inside the triggered subsystem and corresponding From block outside.
Use normal signals instead to exist the triggered subsystem.
An atomic subsystem must execute everything that is inside in one unit. And GoTo and From are also like one unit. So making one cross the other is incompatible.
Depending on the sample time involved, if you really do not want to see a signal line, maybe global Data Store Read and Write could help.
2 个评论
Kevin
2015-12-14
Just use normal connection. Don't bother using goto or read/write blocks . This make your model harder to read, but if you want to pass signal inside triggered/function call subsystem, you got no other choice. Good luck
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!