|
To prompt the operator for the values to use during the protocol run, you can select the option in the Define Variables task or add User Message tasks at the desired points in the protocol. See Adding user message prompts.where x is the variable name and <code snippet> is additional code you want to run during the task. Use standard JavaScript rules for the variable name and for the code snippet.
• Define Variables task. In the Define Variables task, you can define multiple variables and set initial values. For more information, see Define Variables.
• Define Plate Set task. In the Define Plate Set task, you can define a variable that identifies a group of process plates to be processed identically. For more information, see Define Plate Set.
• Task parameter variables. You can define a variable for almost any parameter. For example, in the Aspirate task, you can define a variable for the Volume parameter. For more information, see Task parameter variables.
• Startup Protocol JavaScript task. Using the JavaScript task in the Startup Protocol, you can define multiple variables and assign initial values to them. For more information, see Startup Protocol JavaScript task.In the parameter value text box, type the variable assignment and optional code snippet. For syntax requirements, see Variable and snippet syntax.
1 In the list, select Variable.
2
3 Click OK. The new variable and optional code snippet appear in the parameter value list.
1
2
3 Click OK. The new variable and optional code snippet appear in the parameter field.
1 In the protocol, click Startup Protocol.
2 Click Add Process. A Startup process appears.
3 Add the JavaScript task.
4 In the Advanced Settings area, type the variable assignments.
• Add atask for each variable assigned in a task parameter input field.
• Add atask for any variable that you assigned in the Advanced Settings area of a given task. If you added variables in the Advanced Settings area, add the
task after the
task in the startup protocol.
Alternatively, at the desired points in the Main Protocol, add atask for each variable assigned in a task parameter input field.
2 In the Task Parameters area, type values and select the desired options in the User Message Properties table. For a description of the properties, see User Message.
3 Select User data entry into variable and type the name of the variable in the Variable name box. During the protocol run, the software will prompt the operator for a value and assign it to this variable.
IMPORTANT If you added multiple variables in the startup protocol, do not use the Variable name property. Instead, use the Body property to instruct the operator to set the variable values in the Advanced Settings area. For details on the Body property, see User Message.
Using JavaScript in the VWorks software