https://github.com/mathworks/config-ui-for-simulink-variants
Configuration UI for Simulink Variant
https://github.com/mathworks/config-ui-for-simulink-variants
configuration-management variants
Last synced: 11 months ago
JSON representation
Configuration UI for Simulink Variant
- Host: GitHub
- URL: https://github.com/mathworks/config-ui-for-simulink-variants
- Owner: mathworks
- License: other
- Created: 2020-07-20T13:07:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T14:36:18.000Z (almost 6 years ago)
- Last Synced: 2025-02-22T16:57:35.965Z (over 1 year ago)
- Topics: configuration-management, variants
- Language: MATLAB
- Size: 2.35 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://www.mathworks.com/matlabcentral/fileexchange/78432-config-ui-for-simulink-variants)
# Configuration UI for Simulink variants
Copyright 2020 The MathWorks, Inc.
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.
[VariantConfigAppdoc.html](https://github.com/mathworks/Config-UI-for-Simulink-variants/blob/master/doc/html/VariantConfigAppdoc.html) contains more details.

## Prerequisites
[MATLAB](https://www.mathworks.com/products/matlab.html)
[Simulink](https://www.mathworks.com/products/simulink.html)
The project contains an example using [Simscape](https://www.mathworks.com/products/simscape.html) blocks.
## Getting Started
1. Open project ConfigVariant.prj. The project startup opens the example model and the UI. If you do not have Simscape, open the UI with a Simulink example:
variantConfigUI('sldemo_variant_subsystems');
2. Explore the UI and popup menus.
3. Change selection in popup menus and see adjustments in the model
4. Use variantConfigUI with your own model:
variantConfigUI(yourModel);