VWorks User Guide : Setting parameters for scheduling tasks : Process Control

Process Control
Description
The Process Control task () is used to initiate a specific process within the same protocol based on an upstream condition or the type of labware entering the process.
 
When to use Process Control instead of Spawn Process
The Process Control task extends the functions of a Spawn Process task with simplified implementation in a protocol. Instead of adding multiple Spawn Process tasks in one process, you can simplify the protocol by adding a single Process Control task.
For example, suppose you have two devices in a device pool. You want to design the protocol such that if the first device is busy, the system will use the second device.
You can write the protocol in one of two ways:
 
 
Task parameters
After adding the Process Control task at the desired point in the protocol, set the following parameters in the Task Parameters area:
 
 
Note: The Process selection value determines which process will be initiated.
Example
Goal
Downstack microplates from the Labware Stacker, scan the microplate barcode, read the microplate using an available Envision Reader, and then upstack the microplate to an available Labware Stacker.
Use the pool of two Envision Readers during the protocol run:
Set variables for the following purposes:
Implementation
Create a protocol as shown.
Note: The barcode reader is attached to the platepad, so a Place Plate task is added to scan the microplate barcode at the platepad.
 
In the Protocol Options Startup Script, add JavaScript to reset all relevant variables at the start of the run. Set the Envision Reader busy state (bEnvision1Busy and bEnvision2Busy) to false, and set the procoption to 0.
 
Before setting the task parameters, add JavaScript to the Process Control task to determine which Envision Reader to use. (The script is run before the Process Control task is performed.) The script logic is as follows:
 
Set the Process Control Task Parameters as shown.
Notice that the process selection variable is procoption. This variable determines which process to initiate. The value of this variable is passed from the Process Control JavaScript. If procoption = 1, the task will initiate option 1: Envision 1. If procoption = 2, the task will initiate option 2: Envision 2.
Select Process as subroutine. The microplate barcode information is retained during the Envision processes.
 
Add the JavaScript as shown in each Envision Reader process to set the Envision Reader busy state to false. After the microplate-reading is finished, the devices are available for other labware.
 
Related information