Interrupting a running model
To interrupt a model that is executing, click the Break tool.
About this task
The Break command enables you to regain control immediately (or as soon as possible). Issuing a Break command also suspends the clock, which resumes with the next Go command.
Note: For simple applications, there might be a backlog of notifications. Although
the model stops executing immediately, the animator can accept further input only after it has
cleared this backlog and displayed any pending notifications.
The Break command cannot stop an infinite loop that resides
within a single operation. For example, issuing a Break cannot stop the following
while()
loop:
while(TRUE) j++;
However, it can stop the following code if increaseJ()
is an
operation defined within the product:
while(TRUE) increaseJ();