navigate.model.devices.stage.newport.NewportESP302API
- class navigate.model.devices.stage.newport.NewportESP302API(host, port: int = 5001, timeout: int = 10, logger_func=<function info>)
Bases:
objectHandles low-level Telnet communication with the Newport ESP302 controller. This is analogous to the TigerController or MP285 class.
- __init__(host, port: int = 5001, timeout: int = 10, logger_func=<function info>)
Methods
__init__(host[, port, timeout, logger_func])Queries the controller for the latest error and raises if one exists.
connect()get_position(axis)home_axis(axis[, wait])is_motion_done(axis)motor_on(axis)move_absolute(axis, position[, wait])stop_motion(axis)wait_for_motion_to_stop(axis[, timeout_sec])- check_controller_error()
Queries the controller for the latest error and raises if one exists.
- connect()
- disconnect()
- get_position(axis: int) → float
- home_axis(axis: int, wait: bool = True)
- is_motion_done(axis: int) → bool
- motor_on(axis: int)
- move_absolute(axis: int, position: float, wait: bool = True)
- stop_motion(axis: int)
- wait_for_motion_to_stop(axis: int, timeout_sec=60)