Changing subsystem configuration through simulation parameter

Hello everyone,

I am currently using a subsystem from my library multiple times in a model and it has many configurations. The problem is, it would take a lot of time clicking in every subsystem and change it. Is there a way to change the configuration of these subsystem all at once by defining them in the parameter?

Thanks in advance

Best regards,

Tung Ngo

Hi Tung,

Choose “reference” as the configuration parameter of your subsystem, then choose a variable name you like, for example “config”. Then define this variable “config” in the model initialization commands window with an integer value starting at 1 for the first configuration, as shown in the attached screenshots.

Regards,Manu

Hi Manu, thank you very much for your answer.

Best regards

Tung Ngo