Documentation

Simulink.sdi.getRun

ReturnSimulink.sdi.Run object containing simulation output data

Syntax

  • runObj = Simulink.sdi.getRun(runID)
    example

Description

example

runObj = Simulink.sdi.getRun(runID) returns a handle to the Simulink.sdi.Run object for the run corresponding to runID in the Simulation Data Inspector.

Examples

collapse all

% Configure model "slexAircraftExample" for logging and simulate
simOut = sim('slexAircraftExample','SaveOutput','on',...
             'SaveFormat','StructureWithTime',...
             'ReturnWorkspaceOutputs','on');

% Create a Simulation Data Inspector run
[runID,runIndex,signalIDs] = Simulink.sdi.createRun('My Run','base',{'simOut'});

runObj = Simulink.sdi.getRun(runID);

Related Examples

Input Arguments

collapse all

Run ID, a unique number identifying a run in the Simulation Data Inspector, specified as an integer.

Output Arguments

collapse all

Object containing the signal data and metadata, returned as a Simulink.sdi.Run object handle.

Introduced in R2011b

Was this topic helpful?