import time

from dirigo import units
from dirigo_zaber import ZaberObjectiveZActuator


z = ZaberObjectiveZActuator(
    serial_port="COM3"
)

z.move_to(units.Position("321 um"))
time.sleep(1)

print("Current position", z.position)

z.move_to(units.Position("123 um"))
time.sleep(1)

print("Current position", z.position)

z.close()