Skip to content

Home device

An important step in controlling a Zaber device is homing it.

Homing a device moves it so that it finds a reference position. A reference position is necessary in order to perform accurate absolute position movements. The reference position is retained until the device is powered off, so it's recommended to home devices once shortly after they are powered on. The device does not need to be homed after this as long as power is maintained, but you can include the homing step early in your program if you prefer it to run the same whether the device has been previously homed or not.

# indent this code under the "with" statement
device = device_list[0]
device.home()
var device = deviceList[0];
device.Home();
const device = deviceList[0];
await device.home();
Device device = deviceList[0];
device.home();
device = deviceList(1);
device.home();
device = deviceList(1);
device.home();
Device device = deviceList[0];
device.home();

When the program is run, the device will move to find its reference.

The array of devices in the above example is the one created in the open a serial port section.

The next step in the Getting Started guide makes your device move.