Is there a way to replace a whole subsystem (all blocks inside it included)
with one from a library or from another model ? I tried using replace_block
command but it only replaces blocks with ones in Simulink Library Browser.
Thanks for your help!
John
The most obvious way to do this is by creating a library that contain
your different subsystem. Then, you will be able to use the standard
Simulink function to add & replace any sub-system.
I tried this allready but it didn't help. But I found out that using the
Name-property for the block (or a subsystem) that is to replaced helped. So
the command would be for example:
replace_block('Simulation', 'Name', 'Input', 'lib/Input2','noprompt')
This replaces the subsystem "Input" in Simulation.mdl with subsystem
"Input2" from model lib.mdl
John
"Christian Simard" <christia...@lyrtech.com> wrote in message
news:eecb...@webx.raydaftYaTP...
John
"John Öström" <jostrom...@cc.hut.fi> wrote in message
news:bpkcel$78p$1...@epityr.hut.fi...