Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

Changing subsystem configuration through simulation parameter

0 votes
171 views
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
asked Nov 23, 2022 by tjngo (12 points)

1 Answer

0 votes

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


 

answered Nov 29, 2022 by Manu Parimi (363 points)
edited Nov 29, 2022 by Manu Parimi
Hi Manu, thank you very much for your answer.

Best regards

Tung Ngo
...