Main Content

simulink.compiler.stopSimulation

Stop a long running simulation

Since R2020b

Description

simulink.compiler.stopSimulation('modelName') function enables you to stop a running simulation from a callback or a MATLAB® app for the model specified.

Input Arguments

collapse all

Name of model for which you want to stop the simulation, specified by a string.

Version History

Introduced in R2020b