- Open the mask variant subsystem and make sure that the active variant is set correctly before performing the "Update Diagram" operation. This means that the variant selection should be configured and saved prior to updating the diagram.
- If the active variant is not set correctly, change it to the desired selection and save the changes. Now, perform the "Update Diagram" operation. It should work without any errors if the active variant is configured properly.
- If you need to use different selections of the second library with the variant subsystem, repeat the above steps for each selection before performing the "Update Diagram" operation.
How to configure Mask of Subsystem to avoid: "attempted to change the active variant during update diagram. The active variant must be configured before the update diagram."
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
i use a mask variant subsystem in a libary which propagates its variant selection to upper mask libraries. The second library (which includes the library with the variant subsystem) is used multiple time with different selections. The first times I apply "Update Diagram" the update fails. I have to change the selection of the varaint, press to apply and then change back to the initial selection. After that "Update Diagram" is successfull. How can I avoid this behaviour?
Best regards
0 Kommentare
Antworten (1)
Yash
am 24 Aug. 2023
Hi,
To avoid the error, you need to configure the active variant correctly before updating the diagram to ensure a successful update. You can follow these steps for the same:
If you still face the error after following the above steps, it would be good if you share your model so that I can reproduce the error at my end.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Component-Based Modeling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!