Quick start¶
Point-to-point (one controller, one device — no hub)¶
This is the common case: a single device wired straight to its controller. Construct the model class directly from the serial port; it opens and owns the port itself.
from tl_elliptec import ELL20
with ELL20("COM5") as stage: # "/dev/ttyUSB0" on Linux/macOS
stage.home()
stage.move_absolute(10) # 10 mm, physical units
print(stage.get_position()) # mm