Multiple Simulations: How to map data from runs to test conditions?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
As an example, I have a design study with 11 variations of one parameter, 2 variations of a second parameter, so that 22 total simulations will run.
I have data logging configured for signals of interest.
In Data Inspector, the runs are simply named "Run 1: Modelname [Task1]" as an example. At the end of the simulations, I should have 22 runs with similar names.
1) How do I map these runs back to the test condition / parameter values that were used?
2) Is there a way to configure naming of the runs to reflect the test condition / parameter values used? (For example: "Run1_param1=4_param2=7"
3) Should I use something other than Data Inspector to look at the logged data from the output from multiple simulations?
Thanks!
0 Kommentare
Antworten (1)
Poorna
am 22 Apr. 2024
Hi Mark,
I see you want to name your runs describing the parameter values they take. You can achieve this by programmatically simulating the model, recording the values, and creating runs using the simulink data inspector.
You can use the :sim" function to simulate the model for different runs by changing the parameter values you want to experiment with. Now, after each simulation, you can create your own run using the "Simulink.sdi.Run.create" function. While creating the run you can name the run with the desired name. Here, you can name the run by specifying the run parameter and its values. You can add signals generated by the simulation to the run, modify the preferences, settings and finally save the run. This way you can continue doing this for all the different pairs of parameter values. Now, you can easily compare them using their names which also contain the parameter values.
To know more about inspecting the comparing data programmatically refer to the following documentation:
To know more about the "Simulink.sdi.Run.create" function refer to the following documentation:
Refer to the following link to know about all the functions available for analyzing simulink results.
Hope this Helps!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Outputs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!