Access data for in-progress or most recently completed simulation
returns the runObj
= Simulink.sdi.getCurrentSimulationRun(mdl
)Simulink.sdi.Run
object that corresponds to
the in-progress or most recently completed simulation of the model specified by
mdl
. If you delete the Run
object that corresponds to
the most recently completed simulation, the
Simulink.sdi.getCurrentSimulationRun
function returns empty.
You can use the Simulink.sdi.getCurrentSimulationRun
function to
access logged data in a StopFcn
model callback function. Workspace
variable data is not available when the StopFcn
callback executes, but
the Run
object is available because data streams to the Simulation Data
Inspector.
You can use the Simulink.sdi.getCurrentSimulationRun
function to
analyze run data on parallel workers to determine whether to send the run data to the
Simulation Data Inspector.
Simulink.sdi.getAllRunIDs
| Simulink.sdi.getRun
| Simulink.sdi.getRunCount
| Simulink.sdi.getRunIDByIndex
| Simulink.sdi.Run
| Simulink.sdi.Run.getLatest