Configure an action item based on dependency
- Last UpdatedApr 07, 2025
- 2 minute read
You can configure an action item to execute based on dependency.

To configure an action item based on dependency
-
Set the EnableExecutionOnDependencies property to True. The function executes when the dependency triggers, such as when a periodic time event triggers.

When you set the EnableExecutionOnDependencies property to True, two new properties appear in the Configuration category.

-
Under the Configuration category, select the values for the Dependencies, DependencyExecutionMode, and Function properties.
-
DependencyExecutionMode - Specify whether the action executes for each sample or for each period. Usually, this setting is ExecuteForEachSample.
Modes:
-
ExecuteForEachSample - Whenever there is a new value in the dependency stream, the function executes.
-
ExecuteForEachPeriod - Whenever the end time of the dependency stream changes, the function executes. The regularity of end time updates depend on the component that updates. For example, for an OPC HDA source this is controlled by the PollTime for the connector. This setting is an advanced setting that is not usually required.
-
-
Dependencies - Click Browse (...) to open the Dependencies dialog box. Double-click locations in the project hierarchy to add them as dependencies.

-
Function - Enter an expression with Expression Editor.

-