Discussion:
How to plot XY graph from multiple simulations results in simulink?
(too old to reply)
Povi Nike
2008-11-30 17:24:02 UTC
Permalink
For example I have electrical circuit with voltage source and load. I change load every simulation and I get different values of current. Is there possibility somehow to record measurement values of every simulation and to get for example voltampere plot. Maybe is possible to do it in one simulation.
checker
2008-12-01 00:26:40 UTC
Permalink
For example I have electrical circuit  with voltage source and load. I change load every simulation and I get different values of current. Is there possibility somehow to record measurement values of every simulation and to get for example voltampere plot. Maybe is possible to do it in one simulation.
HI Povi,

This can be easily solved by using 'to workspace' blocks and then
saving the simulation outputs under different names.

-Chris
Povi Nike
2008-12-01 20:55:04 UTC
Permalink
Thanks. Could you explain how to save simulation outputs under different names
and how to read this data?
For example I have electrical circuit =A0with voltage source and load. I =
change load every simulation and I get different values of current. Is ther=
e possibility somehow to record measurement values of every simulation and =
to get for example voltampere plot. Maybe is possible to do it in one simul=
ation.
HI Povi,
This can be easily solved by using 'to workspace' blocks and then
saving the simulation outputs under different names.
-Chris
checker
2008-12-02 00:32:26 UTC
Permalink
Post by Povi Nike
Thanks. Could you explain how to save simulation outputs under different names
and how to read this data?
For example I have electrical circuit =A0with voltage source and load. I =
change load every simulation and I get different values of current. Is ther=
e possibility somehow to record measurement values of every simulation and =
to get for example voltampere plot. Maybe is possible to do it in one simul=
ation.
HI Povi,
This can be easily solved by using 'to workspace' blocks and then
saving the simulation outputs under different names.
-Chris
Sure,

First, people generally prefer bottom posting to make things easier to
read (notice this reply is at the bottom of the original posts).

You'll need to develop a script that runs your simulations for you.
See the function 'sim'. It give you programatic control over the
simulink simulation function. Set up a loop that:
1) sets the input vectors to the desired values.
2) runs the sim
3) renames the output values

If you don't like the script, simply run your sim, then rename your
vectors at the matlab prompt.

At the end of your sim script (or manual sims), you could just do the
XY plot of all the data. Save the data in native format if you like
for future use.

-Chris

Loading...