There are two built-in triggers that control when an event occurs:
• after(): The after() trigger is 0 when initialized and becomes 1 after the specified time interval has elapsed. It then stays at 1 while the state is active. The after() trigger is similar to the functionality of the step block.
• every(): The event() trigger is 0 when initialized and becomes 1 after the specified time interval has elapsed. It then switches back to 0.
The on/off sequence occurs at every specified time interval. You specify the time interval in the following format:
number-of-units unit-specifier
The following rules apply:
• Unit specifiers are s, ms, and us (seconds, milliseconds, and microseconds, respectively)
• A space is required between the number-of-units and the unit-specifier
Examples of built-in triggers are: after(3 s) and every(4 us).
Each event becomes active when entering the state with inner transition or source state for transition.
Events are evaluated and updated, if necessary, at the beginning of each simulation step.