Simulink.sdi.createRunOrAddToStreamedRun
R2026bCreate a single run for all simulation outputs
Description
adds data to the most recent Simulation Data Inspector run associated with the model
runID = Simulink.sdi.createRunOrAddToStreamedRun(mdl,runName,varSources,varValues)mdl. If no run exists in the Simulation Data Inspector
repository for the model mdl, the function creates a new
run.
You can use Simulink.sdi.createRunOrAddToStreamedRun to add
output and state data logged in Structure with Time format to a
run without creating new runs or duplicating signals in the Simulation Data
Inspector. When you use Simulink.sdi.createRun, the Simulation
Data Inspector creates a new run. When you use
Simulink.sdi.addToRun, the Simulation Data Inspector
imports a duplicate the signal. To include all simulation data in a single run with
no redundancy, use
Simulink.sdi.createRunOrAddToStreamedRun.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017a