Simulink: Is there an easy way to replicate a sub-system in the same simulation?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daniel Tweed
el 30 de Jul. de 2015
Comentada: Daniel Tweed
el 31 de Jul. de 2015
I have a simulation composed of several interconnected subsystems, and I wish extend this to simultaneously, but independently, simulate the same process, but in the reverse direction.
I know that I can copy & paste my existing blocks, then manually rename the variables, gotos, etc.
Wondering if there is a simple and easy way to do this where these are renamed automatically (maybe adding pre-/suffix to the existing names)?
I've tried to keep this general, as I think any answer would apply whatever you might be doing with simulink, but am happy to provide any and all details, if it will help someone find an easier solution.
0 comentarios
Respuesta aceptada
Sebastian Castro
el 31 de Jul. de 2015
3 comentarios
Sebastian Castro
el 31 de Jul. de 2015
I've done a little bit of this. I know that people generally use these techniques to string together multiple repetitive blocks, for example, strings of battery cells or finite-element models.
You can use "find_system" to do your search of blocks inside a subsystem... or even to search for the subsystems themselves.
To get a list of all block parameters, you can do:
>> get_param(blockName,'ObjectParameters');
- Sebastian
Más respuestas (0)
Ver también
Categorías
Más información sobre Subsystems en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!