Then, use the absolute and/or relative movement methods to move the device. The following example demonstrates their usage:
Python
C#
C++
JavaScript
MATLAB
Java
Octave
MATLAB (legacy)
# indent this code under the "with" statement# Move to 10mm
device.move_absolute(10, Units.LENGTH_MILLIMETRES)
# Move by an additional 5mm
device.move_relative(5, Units.LENGTH_MILLIMETRES)
// Move to 10mm
device.MoveAbsolute(10, Units.Length_Millimetres);
// Move by an additional 5mm
device.MoveRelative(5, Units.Length_Millimetres);
// Move to 10mmawait device.moveAbsolute(10, Length.mm);
// Move by an additional 5mmawait device.moveRelative(5, Length.mm);
// Move to 10mm
device.moveAbsolute(10, Units.LENGTH_MILLIMETRES);
// Move by an additional 5mm
device.moveRelative(5, Units.LENGTH_MILLIMETRES);
% Move to 10mm
device.moveAbsolute(10, Units.LENGTH_MILLIMETRES);
% Move by an additional 5mm
device.moveRelative(5, Units.LENGTH_MILLIMETRES);
% Move to 10mm
device.moveAbsolute(10, Units.Length("mm"));
% Move by an additional 5mm
device.moveRelative(5, Units.Length("mm"));
% Move to 10mm
device.moveAbsolute(10, LENGTH_MILLIMETRES);
% Move by an additional 5mm
device.moveRelative(5, LENGTH_MILLIMETRES);
// Move to 10mm
device.moveAbsolute(10, Units::LENGTH_MILLIMETRES);
// Move by an additional 5mm
device.moveRelative(5, Units::LENGTH_MILLIMETRES);
The Getting Started guide concludes with the further steps section.