This example shows a way to specify variant configurations for Simulink models containing variant subsytems via a User Interface (UI). Simulink variant subsystem elements are listed in popup menus.
variantConfigUI function searches for all variant subsystems in a model and uses set_param to change 'VariantControlModel' and 'LabelModeActiveChoice'. Adding new variants also changes UI size. Changing a pop up menu's value immediately changes the active variant in the Simulink model.
Fabian Tutschka (2021). Config-UI-for-Simulink-variants (https://github.com/mathworks/Config-UI-for-Simulink-variants/releases/tag/1.0), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.