newport
borealis.controller.newport
Created on Wed Mar 15 16:42:03 2023.
@author: A. Vancraeyenest
NewportXPS(ip_address, alias='', port=5001, timeout=1000)
Bases: Controller
Class to communicate with Newport controller.
Initialise the connection to the device.
Source code in borealis/controller/newport.py
24 25 26 27 28 29 30 31 32 | |
get_axis_position(axis_id)
ABC method to retrieve position of a single axis (derived must override).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
axis_id
|
str
|
Axis ID as used by the controller. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
position |
float
|
Current position (dial) of the axis. |
Source code in borealis/controller/newport.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
is_axis_ready(axis_id)
Check that a given axis is ready (idle).
Source code in borealis/controller/newport.py
64 65 66 | |
is_limit_switch_activated(axis_id)
Check if limit switch is active.
Source code in borealis/controller/newport.py
72 73 74 | |
move_axis(axis_id, target=0.0)
Send instruction to move an axis to a target position.
Source code in borealis/controller/newport.py
39 40 41 42 | |
set_axis_to_zero(axis_id)
Set the axis position to zero.
Source code in borealis/controller/newport.py
68 69 70 | |