How to run mutliple instances of Simulink blocks at the same time without naming errors?

3 views (last 30 days)
Hello all,
How I can run multiple instances of a self-created Simulink block within a simulation model that is being looped within MATLAB without naming errors? MATLAB presently gives an error in the command window in regards to my using multiple gotos of the same name within the Simulink block instances.
Is there a way easier than going through each block and labeling each component as component1, component2, .... ?
Thanks, Joshua

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 30 Jul 2012
It's not clear how/if you want the multiple instances to be resolved, but if each Goto (and the corresponding From blocks) is inside a different subsystem, you can set the "Tag Visibility" to Local. If this is not possible, then you do need to manually/programmatically (using MATLAB code and the SET_PARAM command) rename the tags.

More Answers (1)

Joshua
Joshua on 16 Aug 2012
This makes sense. This seems to be what I was looking for.
Thanks!

Categories

Find more on Interactive Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!