1introduction, 1 java script, 2 variables – Multichannel Systems Roboocyte2 Scripting Manual User Manual
Page 5

5
1
Introduction
1.1 Java Script
Roboocyte2 scripts are written in a JavaScript like language. The syntax (control
structures, variables, functions, arrays) is conforming to JavaScript, other
JavaScript functionality, particularly the document (and other HTML specific
things like DOM handling, libraries etc.) is NOT supported.
1.1.1 Roboocyte2 Specific Features
The Roboocyte2 is controlled via 4 JavaScript objects:
1. Robo2 (the robot hardware)
2. RecDisplay (display of the recordings)
3. ControlDisplay (display of control recordings)
4. Gilson (Gilson liquid handler if applicable)
The commands for each object are listed in the tables below.
1.1.2 Oocyte Loop
In order to record from selected oocytes, functions must be executed within the
so called
oocyte loop
. The array variable
SelectedWells
contains the indices of
these wells and can be used in a for loop, e.g.
for (var i = 0; i < Robo2.SelectedWells.Count; i++)
{
var WellIndex = Robo2.SelectedWells[i];
Robo2.Log("now moving to well: " + Robo2.SelectedWellNames[i]);
Robo2.MoveToWell(WellIndex);
}
1.2 Variables
Variables come in different flavors:
1.2.1 JavaScript Variables
Variables can be created with the JavaScript keyword
var
. These variables can be
used as in standard JavaScript to store values and use them later in the script.
var test = 1
generates a variable "test" with the value "1"