How to set "Start simulation from steady state" in Solver Configuration block from Simscape programmatically?
8 views (last 30 days)
Show older comments
MathWorks Support Team
on 7 Jul 2020
Answered: MathWorks Support Team
on 7 Jul 2020
How to set "Start simulation from steady state" in Solver Configuration block from Simscape programmatically?
Accepted Answer
MathWorks Support Team
on 7 Jul 2020
The block property which needs to be set is 'DoDC'. If the Solver Configuration block is the current block, it works like the following to enable it:
>> set_param(gcb,'DoDC','on')
To disable it, use:
>> set_param(gcb,'DoDC','off')
0 Comments
More Answers (0)
See Also
Categories
Find more on Troubleshooting 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!