Multiple Simulations: How to map data from runs to test conditions?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Poorna
2024-4-22
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Analyze Simulation Results 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!