Display information about sample times in model during simulation debugging session
stimes displays in the MATLAB® Command Window information about the sample times in the model that is running
in the current simulation debugging session. The sample time information includes the
period, offset, and task ID for each sample time.
You can use this function in a simulation debugging session started:
This function is available only for simulation debugging sessions started programmatically and for interactive simulation debugging sessions while paused within a time step.
Display Information About Sample Times in Model
stimes function to display information
about the sample times in the model
vdp during a simulation debugging
Open the model
Start a simulation debugging session for the model
vdp using the
sldebug function. The MATLAB command prompt (
>>) becomes the Simulink debugger prompt (
(sldebug @0): >> ).
(sldebug @0): >>
stimes function to display information about the sample
times in the model. The model
vdp contains three sample times.
--- Sample times for 'vdp' [Number of sample times = 3] 1. tid=0 (continuous) 2. tid=1 (continuous but fixed-in-minor-step) 3. tid=2 (value = inf in ModelWideParameterChangeEvent)
When you have finished debugging, use the
stop function to end
the simulation debugging session.
To start a simulation debugging session interactively, add one
or more breakpoints to your model, and in the Breakpoints List,
check that Pause within time step is selected. When the simulation pauses
on a breakpoint, some of the programmatic debugging commands, such as the
stop command, are available for use in the MATLAB Command Window.
Introduced before R2006a