VWorks User Guide : Creating a protocol: advanced topics : plate object

plate object
About the plate object
The VWorks JavaScript interpreter provides the following objects that can be accessed by a script.
This topic describes the plate object properties and methods.
plate provides access to properties of the labware that the current task is operating on. You use the plate object in non-subprocess tasks such as the Place Plate task.
IMPORTANT To access labware properties in a subprocess task, use the plates[ ] object.
Properties
To see the properties of a plate object:
1
2
In the Advanced Settings area, type plate. The software automatically displays the list of available properties for the plate object.
 
Instead of displaying the list of plate properties in the Advanced Settings area, you can also list them in the Main Log. Doing so allows you to print the log file and retain a copy of the properties for reference.
To list the plate properties in the Main Log:
1
2
Select a task in the Protocol area.
3
In the Task Parameters area, click Advanced Settings.
4
Type the following in the Script to be executed before task area:
for (x in plate) {
print ("plate." + x + " = " + plate[x]);
}
5
The following table lists the plate properties.
 
This property is available only in VWorks software that has the volume-tracking database option.
Methods
Methods are JavaScript functions invoked through an object. The plate object has the following methods, available on systems that have the volume-tracking database option. Use these methods to track microplate-specific data.
Note: You can use the plate.getUserData() method to retrieve information stored by the plates[n].setUserData() method.
 
plate.setUserData(string key, string value)
Calls the VWorks Hooks ScriptPlateError method to pass error to the Hooks plugin.
Related information
 
VWorks-defined functions
Other VWorks-defined objects