Main Content

SLSlicerAPI.SLSlicer.simulate

Class: SLSlicerAPI.SLSlicer
Package: SLSlicerAPI

Simulates a test case for dynamic slicing from time "t1" to time "t2"

Description

simulate(obj,t1,t2) simulates a test case for dynamic slicing from time "t1" to time "t2". If t1 is a non-zero value, the simulation first happens from zero to t2 and then the results reported are trimmed automatically for the specified duration t1 to t2.

Input Arguments

expand all

Object containing Model Slicer configuration options.

Desired time period to view simulation results for the sliced model. Post simulation and analysis the simulation results for the selected time period (t1 to t2) is displayed.

Example

open_system('sldvSliceClimateControlExample');
obj=slslicer('sldvSliceClimateControlExample');
simulate(obj);

Alternatives

To open the Model Slice Manager, in the Simulink® Editor, select the APPS tab, and click Model Slicer. The initial simulation of the model in slicer mode gives you the option to select the upper boundary of the simulation time (t2), with 0 being the lower boundary (t1). Post simulation and analysis you can view the simulation results for the selected time period (t1 to t2). To select the desired time period to view simulation results, from the Model Slice Manager, enter the t1 and t2 values in the Time window field and click Highlight.

Introduced in R2015b