- 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.
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Piotr Kluczek
le 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 ;)
Réponses (0)
Voir également
Catégories
En savoir plus sur Subsystems dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!