- You could try using "Sliders" and "Knobs" linked to workspace variables.
- Defining parameters as "Simulink.Parameter" objects can make them tunable: https://in.mathworks.com/help/simulink/slref/simulink.parameter.html
- Running Simulink models programmatically using the "sim" function might also be helpful: https://in.mathworks.com/help/simulink/slref/simulink.parameter.html
- If you need advanced control, "Simulink.SimulationInput" could be a useful option: https://in.mathworks.com/help/simulink/slref/simulink.simulationinput.html
Iteratively increase Simulink Slider Values Automatically?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a vehicle lap simulation in Simulink which includes sliders and knobs to change certain setup perameters. I'm looking to get the simulation to start at the minimum of each and iteratively increase each, outputting the data to a stop function which plots graphs. I want all the graphs for each iteration to be availiable to view afterwards. I know I could use a for/while and bypass the sliders, but was wondering if there is a way to sort of 'automate' it using the existing dashboad features? Not sure even where to start really!!
Also if anyone has an idea on how to allow the user to select and 'store' maybe 5 preset setups using these sliders and knobs, then run all of them at once, to view and compare data from each setup that would be amazing. Again, not sure where to start there either....
Sorry, I know I'm asking a lot.
Thanks!!!

0 件のコメント
回答 (1 件)
Karan Singh
2025 年 2 月 5 日 6:45
This seems like quite a comprehensive task. I'm suggesting a few tools that you can try to see if they fit your workflow:
I hope these ideas provide a helpful starting point for your project.
Karan
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!