Creating an Exclusive Area
Block Diagram Editor for SWCs:
In the Elements palette, click the
Resource button.The mouse cursor is loaded with the resource type.
Place the resource in the drawing area.
The Reserve and Release methods are displayed as sequence calls.
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.
- Use the exclusive area.
ESDL Editor for SWCs:
- In the Elements palette, click the
Resource button. Enter the following code to reserve the resource:
<resource_name>.reserve();
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.
- Use the exclusive area.
See also
The following links apply only to the block diagram editor for software components: