Enable and Disable input/output subsystem's ports in Simulink

17 visualizaciones (últimos 30 días)
Alberto Mora
Alberto Mora el 1 de Jun. de 2020
Editada: Alberto Mora el 1 de Jun. de 2020
Hello,
I created a subsystem with a mask with multiple "checkbox". The mask is used to interact with the subsystem (e.g. set constants) and choose parameters with checkbox.
I want to obtain the following behaviour:
  • According to the value of checkbox1 (choosen by hands by the user when he set the parameters of the subsystem), an additional output port appears or desapears in my subsystem.
  • According to the value of checkbox2 (choosen by hands by the user when he set the parameters of the subsystem), an additional input port appears or desapears in my subsystem.
How to to that?
Thanks

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 1 de Jun. de 2020
Variant Subsystem now supports various number of Inports and Outports of its variants. You can do it using the Variant Subsystem block without mask.

Categorías

Más información sobre Subsystems en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by