MATLAB: Can model variants be switched while model is running (simulating)

model referencing blocksimulinkvariants

Is is possible to switch the model which is being referred by model referencing block with variants enabled by changing the value of variant object at run time (while model is simulating).

Best Answer

The best you can do is have 2 models running at the same time and use a switch to toggle the two. Unfortunately Simulink will have to process both models.