Full State Output of Simscape Variables and Intermediates to Workspace
1 次查看(过去 30 天)
显示 更早的评论
Hello,
is it possible to send the full state of a Simscpae Simulation to Workspace (including all varialbles and intermediates). I have regocnized that Simscape is only transmitting a reduced state to workspace.
Bests.
0 个评论
回答(1 个)
Sachin Lodhi
2023-11-7
Hi Flauipaui,
Based on my understanding, it seems that you want to save full state information of Simscape Simulation to Workspace.
To achieve this, I recommend you save ‘block states’ and ‘simulation operating points’. The ‘model operating point’ represents the complete set of block states and the state of the model, including the simulation time, the solver state, and the execution engine state.
By saving these details, you can capture the complete state of the output. The logged states and final states are returned as elements of the Simulink.SimulationOutput object.
Please refer to the following documentation for additional information related to saving block states and simulation operating points - https://www.mathworks.com/help/simulink/ug/decide-how-to-save-block-states-and-simulation-operating-points.html#:~:text=initial%20operating%20point.-,Choose%20Which%20State%20Information%20to%20Log,-Depending%20on%20how
I hope this helps.
Best Regards,
Sachin
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Troubleshooting 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!