Multiple Gotos found with tag named 'LibraryTag'

33 次查看(过去 30 天)
I have quite the large model making extensive use of the specialized theory power system blocks.
I get the Error message multiple gotos found with tag named 'LibraryTag' with a 50% chance every time I update the model. This used to be a lot less likely (maybe 1% chance) but it is getting out of hand. Only solution is to close matlab and restart.
The message always pops up with the specialized theory blocks and some gotos used under the hood of those blocks. I have deleting the blocks and adding them again from the library. This helped a little, but did not get rid of the problem.
I am using Matlab 2019b. I cannot change from spezialized theory to simscape blocks, as this would be years worth of work.
How can I fix this?
Is this a known problem?

回答(1 个)

Ayush
Ayush 2024-3-4
Hello Friedrich,
Based on the description of your problem, to reduce the frequency of the error message “multiple gotos found with tag”, you would need to first check for duplicate tags across all the “Goto” block across the model including those defined under the “Specialised Power Systems” blockset.
Once you have that information, you can check the scope of each such duplicate “Goto” block with the tag named “LibraryTag” and limit the scope of the blocks with respect to the required visibility. For more information on “Goto” block and its tag visibility you can refer to the below documentation:
Hope this helps!
  1 个评论
Friedrich Welck
Friedrich Welck 2024-3-11
Every block of the blockset "Specialized Power Systems" has the duplicate goto.
This is not my own library, it's an official matlab simulink library.
All blocks of this library have gotos and they all reference to "LibraryTag". As soon as you drag this block from the library to your model the reference "LibraryTag" ist replaced by a unique hash. So then the goto references something like "12rafdgwbv24vlask23".
But sometimes, when I load my model, the "LibraryTag" references are not replaced by a hash. And now they all point to the same destination "LibraryTag". This used to happen very very rarely, but now it happens with a 50 percent chance. So i have a 50% chance, that my simulation won't run.
It's not something I can change on my end, as I am using official matlab simulink blocks that contain these gotos on a very low level.
I need an explanation, why these hashes randomly are not inserted and how to fix that.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Logging 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by