views (execution context view)

✏️ Edit this page on GitHub

This section explains the Execution Context View.

Location of the Execution Context View


In the Execution Context View, you can display a list of execution contexts (ECs) to which the selected RTC belongs, start/stop ECs, execute RTC actions, and attach/detach RTCs to/from ECs. You can also set the execution cycle of ECs.

Execution Context View


Screen Layout of the Execution Context View
No. Description
① Instance name of the RTC.
② Displays a list of ECs to which the RTC belongs.
ECs owned by the RTC are displayed as "owned*", and ECs in which the RTC only participates are displayed as "participate*".
③ Execution rate of the EC selected in ②.
④
⑤
Displays the properties of the selected EC as a list of Name and Value.
 id: EC ID. In online mode, context_handle is displayed as the ID.
 kind: EC type (PERIODIC/EVENT_DRIVEN/OTHER)
 state: EC state (RUNNING/STOPPING)
 component_state: State of the selected RTC on the EC (ACTIVE/INACTIVE/ERROR)
 owner: Instance name of the owner RTC of this EC
 participants: Number of RTCs participating in this EC
Other arbitrary properties set for the EC are also displayed.
⑥ Applies the entered execution rate to the EC.
⑦ Starts the selected EC. (Not available offline)
⑧ Stops the selected EC. (Not available offline)
⑨ Activates the state of the selected RTC on the selected EC. (Not available offline)
⑩ Deactivates the state of the selected RTC on the selected EC. (Not available offline)
⑪ Resets the state of the selected RTC on the selected EC. (Not available offline)
⑫ Detaches the selected RTC from the selected EC.
However, if the RTC itself is the owner of the EC, it cannot be detached.
⑬ Opens the RTC selection dialog on the System Editor and attaches the selected RTC to the EC.

The value being edited for the execution rate is not applied until the [Apply] button in ⑥ is clicked. Information being modified (not yet applied) is displayed in light red. If the input value is invalid, it is displayed in red.

Editing the Execution Rate


When the Execution Rate Setting Value Is Invalid


In the online editor, you can operate ECs and change the state of RTCs on those ECs.
Click the [Start] button to start the EC, and the state property becomes “RUNNING”. Click the [Stop] button to stop the EC, and state becomes “STOPPING”.
To change the state of an RTC on an EC, click the [Activate] or [Deactivate] button. When activated, the component_state property becomes “ACTIVE”, and when deactivated, component_state becomes “INACTIVE”.
If an RTC enters the “ERROR” state for some reason, click the [Reset] button to recover it.

EC Operations and RTC State Changes


An RTC can be attached to multiple ECs.
Select the EC to which you want to add the RTC, and click the [Attach] button. The RTC selection dialog opens. The selection dialog displays a list of RTCs in the System Editor.

RTC Selection Dialog


When you select an RTC and click [OK], the RTC is added to the EC, and the newly added EC is added to the list of participate ECs for the added RTC.

Attaching an RTC to an EC


To detach an EC, select the participate EC and click the [Detach] button.

Detaching an RTC from an EC