How to use more than 1 powergui in the same model?

9 views (last 30 days)
Hello everyone, I am building a microgrid that I will be using for testing my multiagent system, which means that I know just a little in Matlab... In this microgrid, I need to have a PV, which works in discrete mode, and a wind turbine, which works in phasors mode, and an emergency DG, which works in continuous mode. Since they work in different powerguis, I cannot have them all in the same model. I thought at first to separate the models and use model reference (model block variant) to call them, but still this solution doesn't work. I am having really a hard time and I cannot figure out how to solve this issue. I need your assistance all please with a solution easy to understand and can get me off this problem. Thanks a lot all of you

Answers (1)

Sabin
Sabin on 22 Jan 2024
You can use multiple powergui blocks in a system that contains two or more independent electrical circuits that you want to simulate with different powergui solvers.
To do so, put each circuit in a different subsystem, and then add a powergui block inside each subsystem.
When you use more than one powergui block in a model:
  • Do not place a powergui block in the top-level diagram.
  • Place every independent model in a different subsystem.
  • Place a single powergui block in the top level diagram of every subsystem.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!