Main Content

getDatasetRef

R2026b

Create Simulink.sdi.DatasetRef object for run

Description

sdiDSRef = getDatasetRef(runObj) creates a Simulink.sdi.DatasetRef object that references the data in the Simulink.sdi.Run object runObj. Use a DatasetRef object as an interface to process your data when the data is too large to fit into memory.

example

Examples

collapse all

Reference the data contained in the Simulation Data Inspector run represented by the Simulink.sdi.Run object myRun, which is too large to fit into memory.

Create a Simulink.sdi.DatasetRef object to reference the data in the run.

dsRef = getDatasetRef(myRun);

Access a signal from the run using the DatasetRef object.

sig = getSignal(dsRef,1);

Input Arguments

collapse all

Simulation Data Inspector run with data you want to process that does not fit into memory, specified as a Simulink.sdi.Run object.

Output Arguments

collapse all

Reference to run data that you can use to process data that does not fit into memory, returned as a Simulink.sdi.DatasetRef object.

Version History

Introduced in R2017b