Run Subroutines and Internal Tasks
You can call subroutines and internal tasks.
-
In the Usable window, expand the Usable
Tasks row.

-
Select a task and drag it to the Sequencing Editor
window.

- A Run instruction is added to the editor window.
- The Run Task dialog box appears.
The parameters of the Run Task instructions are optional:
- Goto Label must be entered if the Run Task instruction is the target of a Goto instruction.
- If Display Name is entered, its value
replaces the instruction text: Run Task1.
Input and Output parameters can be single values or arrays. Arrays are supported on run / service calls / parallel runs.
- Input parameters are evaluated when the run is start (By value).
- Output parameters are references (By ref) on one value, array, or subarray.
Example: The output parameter is a vector of 3 values. This vector is a reference on the second vector of the array var.
The dimension of an array parameter can be conformant (marked with *). The actual dimension thus depends on the dimension of the corresponding argument in a routine call. A routine can determine the actual dimension of a parameter using the predefined function dim.
conformant capability can be used with input & output parameters but is not allowed when tasks are spawnables. It means that a task with conformant parameters can be invoked by Procedure runs and Service calls but is not for Parallel runs and Triggers.
With input parameters there is one restriction, the dimension in the calling context must be known and must be deduced from the argument’s expression (The expression must be evaluated before calling the task and the dimension must be fixed). Example: It is impossible to initialize an input argument with an expression using conformant parameters. With output parameters there is no limitation. A conformant output can be a reference on another conformant output or a subpart of another conformant output.
-
Click OK, the
icon represents a Run Task
instruction.




