Import data into the Simulation Data Inspector
creates an empty, unnamed run in the Simulation Data Inspector and returns the
run ID. runID
= Simulink.sdi.createRun
You can use Simulink.sdi.getRun
to access
the Simulink.sdi.Run
object that
corresponds to the run. Set the properties on the Run
object to
add metadata to the run. Use the Simulink.sdi.addToRun
function
or the add
function to add data to the run.
creates a run named runID
= Simulink.sdi.createRun(runName
,'vars',var
,var2,...,varn)runName
that contains data from one or
more variables in the base workspace. Use this syntax to import data from
multiple variables or from a variable that represents an array of objects, such
as an array of Simulink.SimulationOutput
or
Simulink.SimulationData.Dataset
objects.
uses the file reader, runID
= Simulink.sdi.createRun(runName
,'file',filename
,reader
)reader
, to create a run that contains
the data in the file, filename
. Use this syntax when multiple
file readers that support the file with data to import are registered with the
Simulation Data Inspector. To determine which readers are available for your
file, use the io.reader.getSupportedReadersForFile
function.
creates a run that contains the data in the cell array
runID
= Simulink.sdi.createRun(runName
,'namevalue',sourceNames
,sigValues
)sigValues
. The cell array sourceNames
specifies the source names used to set the RootSource
,
TimeSource
, and DataSource
properties for the signals imported from the sigValues
cell
array.
io.reader.getRegisteredFileReaders
| io.reader.getSupportedReadersForFile
| Simulink.sdi.addToRun
| Simulink.sdi.createRunOrAddToStreamedRun
| Simulink.sdi.getRun
| Simulink.sdi.Run.create