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

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

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 7월 30일
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.

추가 답변 (1개)

Joshua
Joshua 2012년 8월 16일
This makes sense. This seems to be what I was looking for.
Thanks!

카테고리

도움말 센터File Exchange에서 General Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by