simulate
Class: SLSlicerAPI.SLSlicer
Namespace: SLSlicerAPI
Simulates a test case for dynamic slicing from time "t1" to time "t2"
Syntax
Description
simulate(
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.obj
,t1
,t2
)
Input Arguments
Example
openExample('slcheck/AddStartingPointAndHighlightTheModelSliceExample','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.
Version History
Introduced in R2015b