Replace GoTo Block in Simulink

18 views (last 30 days)
Hello I need to modularize an existing simulink model. In this model tons of GoTo blocks were used. But they make the code unreadable and i dont have a clear interfaces for my moduls. So I want to replace the GoTo Blocks with BusSignals in and out of the moduls. Is there any simple way e.g. by a script to replace the GoTo blocks with signals going into a bus? Or do I have to do this manually?

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 5 Sep 2013
You could technically write a MATLAB script using Simulink command-line functionality to do the replacement for you, but depending on the complexity of your model/interfaces, it may or may not be simpler to do it manually compared to writing a script.

More Answers (0)

Categories

Find more on Programmatic 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!