% Import data into the Simulation Data Inspector
%
% runID = Simulink.sdi.createRun() - creates an empty, unnamed run in the
% Simulation Data Inspector and returns the run ID
%
% runID = Simulink.sdi.createRun(runName) - creates an empty run named
% runName
%
% runID = Simulink.sdi.createRun(var) - creates a run that contains the
% data in the scalar workspace variable var. The run is named according to
% the input variable. For example, when var is a timeseries object, the run
% name comes from the Name property of the timeseries object.
%
% runID = Simulink.sdi.createRun(runName,'vars',var,var2,...,varn) -
% creates a run named 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.
%
% runID = Simulink.sdi.createRun(runName,'file',filename) - creates a run
% that contains the data in the file specified by filename.
%
% runID = Simulink.sdi.createRun(runName,'file',filename,reader) - uses the
% file 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.
%
% runID = Simulink.sdi.createRun(runName,'namevalue',sourceNames,sigValues) -
% creates a run that contains the data in the cell array 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.
%
% [runID,runIndex,signalIDs] = Simulink.sdi.createRun(___) returns the run
% ID, the index of the run in the Simulation Data Inspector, and the signal
% IDs for the signals in the run.

 
% Copyright 2011-2021 The MathWorks, Inc.

