Creating an Event

Events are required to trigger runnables. To create a timing or mode-switch event, proceed as follows.

Note

Operation-invoked events are created, set up and assigned automatically at need (see Specifying a ClientServer Interface Prototype). They cannot be altered manually.

  1. In the software component editor, open the Event Specification view.
  2. Do one of the following:

    • Right-click in the Events field and select Add Event from the context menu.

    • In the Event menu, select Add Event.

    • Press <Insert>.

  3. Enter a name for the event and press <Return>.

    Note

    Event names must not begin with a number. If you enter a name that begins with a number, an allowed name is suggested instead.

    An event name must not be identical to a runnable name. If it is, a warning (WMdl388) is issued during code generation.

  4. Set up the event.
  5. Assign the event to a runnable.

See also

Setting Up an Event

Assigning Events to Runnables

Renaming or Deleting Events

Deassigning Events from Runnables

Reserved Keywords