cancel
Cancel a pending, queued, or running Simulink.Simulation.Job
object
Description
cancel(
stops the
simJob
)Simulink.Simulation.Job
object, simJob
, that is
currently in 'pending'
, 'queued'
, or
'running'
state.
cancel(
stops the simJob
,'Message'
)Simulink.Simulation.Job
object, simJob
, that
is in 'pending'
, 'queued'
, or
'running'
state and displays a user-specified message.
The State
property of Simulink.Simulation.Job
object is set to finished, and other pending simulations are canceled. Canceling a job
object disables you to fetch results from it. A canceled job object cannot be started
again.
Note
On canceling the job, the results of the completed simulations in the job are also lost.
Examples
Input Arguments
Version History
Introduced in R2018b
See Also
Functions
parsim
|batchsim
|batch
(Parallel Computing Toolbox) |diary
|fetchOutputs
|listAutoAttachedFiles
|wait
|getSimulationJobs
Classes
Topics
- Comparison Between Multiple Simulation Workflows
- Batch Processing (Parallel Computing Toolbox)