VWorks User Guide : Using macros to create protocols : About protocol macros and the macro library

About protocol macros and the macro library
About this topic
This topic describes the VWorks macros and the macro library that you can create to help simplify and expedite the protocol writing process. To create macros and protocols, you must have VWorks Technician- or Administrator-level access.
Macros defined
A VWorks macro is a collection of protocol tasks and associated task parameters grouped together in an abbreviated form. You can insert the macro easily at other places within the same protocol or throughout other protocols where the same task sequence is required.
A macro eliminates the need to recreate a repeated task sequence within the same protocols or subsequent protocols that you write. Therefore, protocol writing can be easier, faster, and less error-prone.
Suppose you want to create a protocol that has multiple wash routines, where each wash routine consists of a sequence of Tips On, Aspirate, Dispense, and Tips Off tasks. You could do the following using a macro:
1
2
3
For instance, the variables could be exposed on a protocol form that the operator is permitted to change at run time.
4
For the subsequent protocols that you create, which require the wash routine, you can insert the macro from the macro library. For each instance of the macro, you should verify that the parameter values are set correctly, such as Location, plate and Location, location.
Later, if you want to modify the macro, the change can be replicated to all the other instances of the macro in an open protocol.
Types of macros
You can create the following types of macros in the VWorks software:
 
Macros have the following requirements:
Macro library
The macro definitions are stored in a macro library. Although different versions of a given macro may be in use in the protocols, the software maintains only one official version in the macro library. The VWorks software uses an .mlb file to store the macro library. By default, the file path is as follows:
…\VWorks Workspace\VWorks\MacroLibrary.mlb
The Available Macros area in the VWorks window displays the contents of the macro library.
Figure. Available Macros area displaying the contents of the macro library
 
The Available Macros area lists the macros alphabetically. If no protocol is open, the macro list includes all types of macros. If a protocol is open, a subset of the macro library appears in the list depending on which area of the protocol tab is active and which devices are used in the protocol. For example, in the following figure only the subprocess macros for the Bravo Platform appear.
Figure. Available Macros area displaying only the subprocess macros
 
Related information