How do I change an instance parameter in the model reference's model workspace in between simulations when the using Fast Restart mode?
Show older comments
I am attempting to change an instance parameter in between simulations. I have a reference model which multiplies a sinusoid by a scalar. This scalar value is dictated by a model workspace variable named "Param". When I do not have Fast Restart mode on, I am able to change the variable value by using "setVariable" and a Simulation Input object. However, these changes do not persist when Fast Restart mode is turned on.
How can I accomplish this workflow when using Fast Restart mode?
Accepted Answer
More Answers (0)
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!