Setting Up an Event

Events are created as timing events with a default period.

  1. In the software component editor, open the Event Specification view.
  2. In the Events field, select the event you want to set up.
  3. If applicable, enable the modes during which the event shall be available. Disable all other modes.
  4. In the Event Kind combo box, select the event type.

    Possible selections are Timing and ModeSwitch.

    Note

    The ModeSwitch event type is only relevant when at least one mode group is used in the SenderReceiver interfaces of the software component.

    Events of type OperationInvoke are created, set up and assigned automatically at need (see Specifying a ClientServer Interface Prototype). They cannot be altered manually.

  5. To set up a Timing event, enter the period in seconds (e.g., 0.01 for a period of 10 milliseconds) in the Period field.

  6. To set up a ModeSwitch event, Closedproceed as follows.

    1. Activate entry or exit to determine whether the assigned runnable is started when the selected mode is entered or left.

    2. In the Assigned Mode combo box, select the mode you want to assign to the event.

      Or

    3. In the Events field, right-click a mode below the event and select Assign to Mode Switch.

      Note

      The mode you select here must be enabled for the event. Otherwise, the assigned runnable is never triggered.

  7. Enable/disable individual modes for an event.

See also

Creating an Event

Assigning Events to Runnables

Specifying a ClientServer Interface Prototype

Enabling/Disabling Modes