Repeat a simulink subsystem without copying it

1 view (last 30 days)
Hello,
I have an existing Simulink File which I have to extend.
The file is a model of a technical system and the calculation of its energy demand. I tried to visualize the scheme of the model.
As you can see there are three subsystems (which consist of several subsystems, too). The left one is an input mask which consists all the parameters needed to calculate the technical system and eventually the energy demand of it.
I now want to connect a variable amount of technical systems in series and calculate their energy demand. The technical systems don't necessarily have the same input parameters.
In my imagination (this is my first MATLAB project) I have to create an additional layer above. There should be another input mask which determines e. g. the amount of technical systems in a row.
Do you have any hints for me how to realize this intention? Is it even possible if the technical systems don't have the same input parameters? My biggest concern is how to repeatedly change the input parameters of the particular technical system. Is there a way to implement this with SimEvents?
Thanks for your answers and best regards.

Answers (1)

Vineeth Kartha
Vineeth Kartha on 6 Jan 2016
Hi Carsten,
I have a couple of questions here:
  1. Can the outputs of the 'Technical System' be given as input back to it. I ask this because you want to connect several Technical Systems in series.
  2. Do you want to add the 'technical System' dynamically, or will you know how many Technical Systems need to be added.
Please share a sample model if possible so that the question becomes more clear.

Community Treasure Hunt

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

Start Hunting!