- 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.
4 views (last 30 days)
Show older comments
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 Comment
Piotr Kluczek
on 19 Mar 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 ;)
Answers (0)
See Also
Categories
Find more on Subsystems 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!