Documentation Center

  • Trial Software
  • Product Updates

Contents

Simulink.sdi.getRun

Return Simulink.sdi.Run object containing simulation output data

Syntax

runObj = Simulink.sdi.getRun(runID)

Description

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.

Input Arguments

runID

Run ID, a unique number identifying a run in the Simulation Data Inspector.

Output Arguments

runObj

A handle to the Simulink.sdi.Run object containing the signal data and metadata.

Examples

Get the Simulink.sdi.Run object for a run in the Simulation Data Inspector.

% 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);

See Also

|

Was this topic helpful?