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

조회 수: 27 (최근 30일)
Alberto Mora
Alberto Mora 2020년 6월 1일
편집: Alberto Mora 2020년 6월 1일
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

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 6월 1일
Variant Subsystem now supports various number of Inports and Outports of its variants. You can do it using the Variant Subsystem block without mask.

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by