emode
Switch between accelerator and normal mode during simulation debugging session
Syntax
Description
emode
switches the simulation mode between accelerator mode
and normal mode during a simulation debugging session.
The Simulink® debugging programmatic interface supports only normal mode and accelerator mode simulations. Rapid accelerator mode is not supported.
To switch between accelerator mode and normal mode, you must start the simulation
debugging session with the model in accelerator mode. Before starting the simulation
debugging session, in the Simulink Toolstrip, on the Simulation tab, in the
Simulate section, select
Accelerator
from the drop-down list.
Starting a simulation debugging session in accelerator mode can speed up a simulation debugging session. For example, if you know you need to investigate the simulation after a certain simulation time, you can start the simulation debugging session in accelerator mode, specify a time breakpoint, and continue. The simulation runs faster in accelerator mode than it would in normal mode to reach the time breakpoint. Then, for access to complete debugging capabilities, you can change to normal mode.
You must switch to normal mode execution to step the simulation block by block and to use these functions:
Note
This function is supported only for simulation debugging sessions started programmatically using the sldebug
function or using the sim
function with the 'debug'
name-value argument.
Examples
Version History
Introduced before R2006a