![]() |
This topic assumes that you have an understanding of how to create VWorks protocols, including how to do the following:
Define JavaScript variables in the VWorks software Write programs in JavaScript in the VWorks software
1 In the Available Macros tab, right-click the macro icon, and then choose Edit from the shortcut menu.
3 Click Add Variable. A row appears in the Variable Name table.
4 In the new row, click the Variable Name field, and then type the exact same JavaScript variable that appears in the Task Parameters area for the given task parameter.For example, a macro contains multiple Wash Tips tasks for which you are using the same volume. In the corresponding Task Parameters for each task, you define the Volume parameter as a variable, such as =WashVol_. You use the same variable, WashVol_ as the variable name in the macro’s custom parameters. You can change the volume specified for both tasks by editing the variable value in the macro’s Custom Parameters area.
5
1
At the macro level, you can use only the shared methods of the task object. For a description of the task object’s shared methods, see task object.
1 In the Available Macros tab, right-click the macro icon, and then choose Edit from the shortcut menu.
3 Click Advanced Settings.
4 In the Script to be executed before task runs box, type your script.Note: To view the list of available properties for the task object, type task. You can select a property from the list that appears.
VWorks JavaScript variables