- If you want more inputs I assume you have a different block that reacts upon it. So It would be best to use variants: https://www.mathworks.com/help/simulink/slref/variant-subsystems.html
- If you do the same operation consider using vector input to Subsystem. Most of standard blocks in Simulink seeing vector input will "multiply" its effect (e.x. 2 dimensional vector will make 2 outputs on integrator)
Subsystem with variable number of ports.
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone.
I would like to know how can I create a block with number of ports (input and output) chosen by the user in some mask parameter and this block must be part of a library too.
I was creating all my custom blocks using subsystem blocks. Is it possible to create a subsystem block with these functionalities?
Thank you!
1 comentario
Piotr Kluczek
el 19 de Mzo. de 2021
Well, this is old, but I thought it deserves at least some answer:
The solution depends on what you want to achieve:
I love to answer old posts ;)
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!