필터 지우기
필터 지우기

Goto/From connections cannot cross nonvirtual subsystem boundaries. The only exception is when a goto is connected to a state output port

조회 수: 174 (최근 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
Zangdaarr
Zangdaarr 2016년 5월 6일
편집: Zangdaarr 2016년 5월 6일
Goto/From are a pain in the ass. Do not use them, never. Especially in their "global" form, which is terrible.
Goto/From are just a bypass for when people are not capable to make clean model, same apply with C/C++ and global variables.

댓글을 달려면 로그인하십시오.

답변 (1개)

Guy Rouleau
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
rach
rach 2012년 5월 26일
Hi Rouleau, thanks for the reply.
I tried to follow your suggestion on using Data Store Read and Write, and received the following error:
Invalid setting for input port dimensions of 'microgridInput_dataRW/VSC Controller (Station 1)/Anti-aliasing Filters/Demux5'. The dimensions are being set to 1. This is not valid because the total number of input and output elements are not the same
May I know how should I go about solving this problem? Thank you so much for your help, I really appreciate it.
Cheers,
Rach
Kevin
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

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by