VWorks User Guide : Setting parameters for scheduling tasks : Loop and Loop End

Loop and Loop End
Description
The Loop () and Loop End () tasks are used together to repeat a set of tasks that are within the two tasks.
 
Task parameters
Note: Loop End does not have any task parameters.
After adding the Loop task at the desired point in the protocol, set the following parameters in the Task Parameters area:
 
 
If you want to change the value of variables during the looping process, click Custom Parameters and set the following:
 
 
To add a variable, click Add Variable. A blank row appears in the table. Select the desired value for each column.
Every time. The variable should increment or decrement every loop.
Every n times. The variable should increment or decrement every specified number of times.
After first time. The variable should increment or decrement starting from the second loop.
After last time. The variable should increment or decrement after the last loop.
Example: Use the Loop task for plate set indexing
Goal
In a protocol where a plate set variable is defined, use the Loop task to specify the starting plate set (or array) index, how frequently the variable will increment or decrement, and the amount by which the index will increment or decrement.
Implementation
In the following protocol example, a plate set is defined and used in the liquid-handling tasks.
I
In the Define Plate Set Task Parameters area, an array of source microplates is defined and indexed (0, 1, 2, and 3). In the Loop Custom Parameters area, the PlateSet variable is selected. The Initial Value is set to 0 to match the first PlateSet index (0). The PlateSet variable will increment by 1 every time through the loop. So the first time through the loop, PlateSet index 0, or SourceA is processed. The second time through the loop, PlateSet index 1, or Source B is processed, and so on.
I
Related information