Full State Output of Simscape Variables and Intermediates to Workspace

1 Ansicht (letzte 30 Tage)
Flauipaui
Flauipaui am 18 Jan. 2022
Beantwortet: Sachin Lodhi am 7 Nov. 2023
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.

Antworten (1)

Sachin Lodhi
Sachin Lodhi am 7 Nov. 2023
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.
I hope this helps.
Best Regards,
Sachin

Kategorien

Mehr zu Troubleshooting finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by