Action Sequence
Description
Use this Step to execute preconfigured actions in sequence to initialize the target projects.
Usage Scenario
This Step is applicable when multiple initialization operations need to be completed sequentially before running the target projects, such as configuring cameras, clearing camera or global variable buffers, and switching parameter recipes.
Input and Output
Output
| Output Port | Data Type | Description |
|---|---|---|
Overall Execution Result |
Bool |
True indicates that all actions succeeded, and false indicates that at least one action failed. |
Action Execution Results |
Bool[] |
Results follow the configured action order. True indicates that the action succeeded, and false indicates that it failed or was not executed. After an action fails, subsequent actions are not executed. |
Parameter Description
In the Step’s parameter configuration panel, click the Add action button and select actions as needed. Up to 10 actions can be added to one Action Sequence Step. After adding multiple actions, drag the icon to the left of an action to adjust the execution order. When the Step runs, the actions are executed sequentially from top to bottom.
For actions that set parameters, the parameters in an action correspond to parameters with the same names in the selected Step. When this Step runs, the parameter values set in the action are synchronized to the corresponding parameters in the selected Step. For details about the parameters and how to adjust them, see the parameter description of the selected Step.
| Action Type | Action | Parameter Description | |
|---|---|---|---|
Camera configuration |
Set Exposure Time (2D) |
Step Name: Select the Step connected to the target 2D smart camera. Exposure Time: Set the exposure time used by the 2D smart camera to acquire images, in μs. |
|
Set Gain (2D) |
Step Name: Select the Step connected to the target 2D smart camera. Gain: Set the gain used by the 2D smart camera to acquire images, in dB. |
||
Clear Buffer (2D) |
Step Name: Select the Step connected to the target 2D smart camera whose buffer is to be cleared. |
||
Set Focus Distance (2D) |
Step Name: Select the Step connected to the target 2D smart camera. Focus Distance: Set the focus distance of the 2D smart camera.
|
||
Set Gamma Correction Value (2D) |
Step Name: Select the Step connected to the target 2D smart camera. Gamma Correction Value: Set the Gamma correction value of the 2D smart camera. |
||
Set Max Buffered Frames (2D) |
Step Name: Select the Step connected to the target 2D smart camera. Max Buffered Frames: Set the maximum number of image frames that the camera can buffer. |
||
Global variables |
Clear Global Variable Buffer |
Variable Name: Select the global variable whose buffer is to be cleared. |
|
Parameter recipe |
Switch Parameter Recipe |
Project Name: Select the project whose parameter recipe is to be switched. Recipe Name: Select the parameter recipe to apply. |