Can you swap simulink blocks?

Is there a way to switch one simulink block directly for another (without using the simulink library browser)? Example: I am using a display block to show engine_speed (using a 'From Workspace' block), but I want to use a scope block. Can you directly swap 'scope' for 'display' and still maintain the connection that originally existed between 'display' and 'engine_speed'?

Answers (1)

Fangjun Jiang
Fangjun Jiang on 23 Aug 2011
Yes, if you are up to writing a little bit script. I've done that. It's not that hard actually. The main function is replace_block().

Categories

Products

Asked:

on 23 Aug 2011

Community Treasure Hunt

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

Start Hunting!