Creating an Exclusive Area

Block Diagram Editor for SWCs:
  1. In the Elements palette, click the Resource button.

    The mouse cursor is loaded with the resource type.

  2. Place the resource in the drawing area.

    The Reserve and Release methods are displayed as sequence calls.

  3. Edit the Reserve and Release methods manually or automatically.

    Note

    Make sure that the sequence number for Reserve is lower than the sequence number for Release.

    In addition, it is strongly recommended that you select the same runnable for both methods.

  4. Use the exclusive area.
ESDL Editor for SWCs:
  1. In the Elements palette, click the Resource button.
  2. Enter the following code to reserve the resource:

    <resource_name>.reserve();

  3. Enter the following code to release the resource:

    <resource_name>.release();

    Note

    The code to be executed in the exclusive area must be placed between these two lines.

  4. Use the exclusive area.

See also

Exclusive Areas

Using Exclusive Areas

Introduction – Resources

The following links apply only to the block diagram editor for software components:

Editing a Sequence Call in the Sequence Editor

Automatically Assigning Individual Sequence Calls