Documentation Center

  • Trial Software
  • Product Updates

find

Class: sdo.SimulationTest
Package: sdo

Find logged data set

Syntax

data = find(sim_obj,data_name)

Description

data = find(sim_obj,data_name) searches for an element with a specific name in the LoggedData property of sim_obj. Use who to find possible names.

Input Arguments

sim_obj

sdo.SimulationTest object

data_name

Data set name to search for, specified as a string inside single quotes (' ').

Output Arguments

data

Logged simulation data for the data set name specified in data_name.

Examples

Find logged data set.

Log model signals.

Pressures = Simulink.SimulationData.SignalLoggingInfo;
Pressures.BlockPath       = 'sdoHydraulicCylinder/Cylinder Assembly';
Pressures.OutputPortIndex = 1;
simulator = sdo.SimulationTest('sdoHydraulicCylinder');
simulator.LoggingInfo.Signals = Pressures;

Run a simulation

sim = sim(simulator)

Search for logged data.

sim_log = find(simulator,'sdoHydraulicCylinder');

See Also

| |

Tutorials

Was this topic helpful?