Add a Breakpoint
You can add a breakpoint to pause the simulation when the breakpoint is reached.
- To add a breakpoint on a variable, double-click the corresponding box in the Breakpoint
column.The box is white and open to enter text.
-
Type the condition.
You can use the following operators:
Operator Simulation is paused when == Variable is equal to value (for example ==TRUE). Note: This operator is useful for discrete variables. For continuous variables it is better to use for example >= or <=, since the value is only tested at a simulation step.!= Variable is not equal to value (for example !=1.2). > Variable is larger than value. >= Variable is larger than, or equal to, value. < Variable is smaller than value. <= Variable is smaller than, or equal to, value. ! Variable is value is modified. Notes:- You can only add one simple condition per variable.
- Units are supported. This means:
- If you enter a value without unit, that value is interpreted as being in the display unit.
- If you enter a value with another unit than the display unit, the value is converted to the display unit.
As an example, if the display unit for an angle is degrees (deg) and you enter 1.5rad, the value is converted to degrees.
- If you enter a value with a unit that does not fit, for example, using mm for an angle, the breakpoint is reset.
Tip: You can also add the last breakpoint alternative above (variable value is modified) by right-clicking the breakpoint box and selecting Breakpoint on variable modification . - Press Enter to validate.The breakpoint is added, indicated by
- : for all breakpoints except on value modification
- : for a breakpoint on value modification
When the value of the corresponding variable fulfills the condition of the breakpoint, the following actions are performed:
- The simulation is paused.
- The breakpoint icon is changed to .
- A message appears in the Messages Reporting window. The message contains the name of the variable, the condition, and the time of the event.
You can restart the simulation, but the simulation is paused at the next step, if the breakpoint condition is still fulfilled.