How to set StopTime programmatically?
5 views (last 30 days)
My model stop time is set to 5 seconds. I want to change that programmatically.
set_param(test_model, 'StopTime', '100')
% run simulation
% save modified model
When I run the simulation, it does not run for 100 seconds.
However, when I open modified_model I see in the GUI that Stop time is set to 100.
Why is the model running for 5 seconds only and GUI shows 100?