Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Simulink.sdi.getRun

Get a Simulink.sdi.Run object containing simulation output data

Syntax

runObj = Simulink.sdi.getRun(runID)

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

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?