Refer to the model “slexVariantVnVWorkflow” which provides an example of a Variant subsystem. You can find this at the following documentation link:
- The Variant Subsystem shown in the model has two choices :
- Open Simulink Test Manager, and click on "New → Equivalence Test"
1) Create parameter sets and add the variant control variable with the respective value. Each parameter set aligns with a specific variant control value.
2) In the above example,there are two parameter sets corresponding to the variant control expressions speedConfig = 1 and speedConfig = 2.
3) For Simulation #1 (Normal mode):
4) For Simulation #2 (SIL mode):
5) Create Iterations and run test: