Main Content

Break on Ctrl+C

Option to enable terminating simulation by pressing Ctrl+C

Model Configuration Pane: Simulation Target

Description

The Break on Ctrl+C parameter specifies whether models that contain MATLAB Function blocks, Stateflow® charts, and dataflow domains terminate when you press Ctrl+C when you run a simulation or generate code. When you enable this parameter, graphics refresh during simulation.

Caution

When you disable this parameter, you may have to close MATLAB® to end a long-running simulation.

Settings

on | off
on

MATLAB Function blocks, Stateflow charts, and dataflow domains periodically check if Ctrl+C is pressed. The graphics refresh.

off

MATLAB Function blocks, Stateflow charts, and dataflow domains do not respond to Ctrl+C. The graphics do not refresh.

Recommended Settings

ApplicationSetting
Debuggingon
Traceability

No recommendation

Efficiency

No recommendation

Safety precaution

No recommendation

Programmatic Use

Parameter: SimCtrlC
Type: string | character vector
Values: 'on' | 'off'
Default: 'on'

Version History

Introduced in R2009b