You are reading the documentation for the main branch, which may contain unreleased changes. The most recent release is v0.1.0.
pnpq.devices.odl_thorlabs_kbd101 module#
- class pnpq.devices.odl_thorlabs_kbd101.AbstractOpticalDelayLineThorlabsKBD101#
Bases:
ABC- abstractmethod get_homeparams()#
Request home parameters from the device.
- Return type:
- abstractmethod get_jogparams()#
Request jog parameters from the device.
- Return type:
- abstractmethod get_status()#
Request the latest status message from the device.
- Return type:
- abstractmethod get_velparams()#
Request velocity parameters from the device.
- Return type:
- abstractmethod home()#
Move the device to home position.
- Return type:
None
- abstractmethod identify()#
Identifies the device represented by this instance by flashing the light on the device.
- Parameters:
chan_ident – The motor channel to identify.
- Return type:
None
- abstractmethod jog(jog_direction)#
Jog the device in a certain direction.
- Parameters:
jog_direction (JogDirection) – The direction to jog in.
- Return type:
None
- abstractmethod move_absolute(position)#
Move the device to the specified position.
- Parameters:
position (Quantity) – The angle to move to.
- Return type:
None
- abstractmethod set_homeparams(home_direction=None, limit_switch=None, home_velocity=None, offset_distance=None)#
Set home parameters on the device.
All parameters of this function are optional. Only fields with values are updated on the device.
- Parameters:
home_direction (None | HomeDirection) – The home direction.
limit_switch (None | LimitSwitch) – The limit switch.
home_velocity (None | Quantity) – The home velocity.
offset_distance (None | Quantity) – The offset distance.
- Return type:
None
- abstractmethod set_jogparams(jog_mode=None, jog_step_size=None, jog_minimum_velocity=None, jog_acceleration=None, jog_maximum_velocity=None, jog_stop_mode=None)#
Set jog parameters on the device.
All parameters of this function are optional. Only fields with values are updated on the device.
- Parameters:
jog_mode (JogMode | None) – The jog mode.
jog_step_size (Quantity | None) – The jog step size.
jog_minimum_velocity (Quantity | None) – The minimum velocity.
jog_acceleration (Quantity | None) – The acceleration.
jog_maximum_velocity (Quantity | None) – The maximum velocity.
jog_stop_mode (StopMode | None) – The stop mode.
- Return type:
None
- abstractmethod set_velparams(minimum_velocity=None, acceleration=None, maximum_velocity=None)#
Set velocity parameters on the device.
All parameters of this function are optional. Only fields with values are updated on the device.
- Parameters:
minimum_velocity (None | Quantity) – The minimum velocity. According to the documentation, this should always be 0. Therefore this parameter can be left unused.
acceleration (None | Quantity) – The acceleration.
maximum_velocity (None | Quantity) – The maximum velocity.
- Return type:
None
- class pnpq.devices.odl_thorlabs_kbd101.OpticalDelayLineHomeParams(*args, **kwargs)#
Bases:
UserDict[str,Any]- Parameters:
args (Any)
kwargs (Any)
- class pnpq.devices.odl_thorlabs_kbd101.OpticalDelayLineJogParams(*args, **kwargs)#
Bases:
UserDict[str,Any]- Parameters:
args (Any)
kwargs (Any)
- class pnpq.devices.odl_thorlabs_kbd101.OpticalDelayLineThorlabsKBD101(*, connection: pnpq.apt.connection.AbstractAptConnection, home_on_init: bool = True)#
Bases:
AbstractOpticalDelayLineThorlabsKBD101- Parameters:
connection (AbstractAptConnection)
home_on_init (bool)
- connection: AbstractAptConnection#
- get_homeparams()#
Request home parameters from the device.
- Return type:
- get_jogparams()#
Request jog parameters from the device.
- Return type:
- get_status()#
Request the latest status message from the device.
- Return type:
- get_velparams()#
Request velocity parameters from the device.
- Return type:
- home()#
Move the device to home position.
- Return type:
None
- home_on_init: bool = True#
- identify()#
Identifies the device represented by this instance by flashing the light on the device.
- Parameters:
chan_ident – The motor channel to identify.
- Return type:
None
- jog(jog_direction)#
Jog the device in a certain direction.
- Parameters:
jog_direction (JogDirection) – The direction to jog in.
- Return type:
None
- log = <BoundLoggerLazyProxy(logger=None, wrapper_class=None, processors=None, context_class=None, initial_values={}, logger_factory_args=())>#
- move_absolute(position)#
Move the device to the specified position.
- Parameters:
position (Quantity) – The angle to move to.
- Return type:
None
- set_channel_enabled(enabled)#
- Parameters:
enabled (bool)
- Return type:
None
- set_homeparams(home_direction=None, limit_switch=None, home_velocity=None, offset_distance=None)#
Set home parameters on the device.
All parameters of this function are optional. Only fields with values are updated on the device.
- Parameters:
home_direction (None | HomeDirection) – The home direction.
limit_switch (None | LimitSwitch) – The limit switch.
home_velocity (None | Quantity) – The home velocity.
offset_distance (None | Quantity) – The offset distance.
- Return type:
None
- set_jogparams(jog_mode=None, jog_step_size=None, jog_minimum_velocity=None, jog_acceleration=None, jog_maximum_velocity=None, jog_stop_mode=None)#
Set jog parameters on the device.
All parameters of this function are optional. Only fields with values are updated on the device.
- Parameters:
jog_mode (JogMode | None) – The jog mode.
jog_step_size (Quantity | None) – The jog step size.
jog_minimum_velocity (Quantity | None) – The minimum velocity.
jog_acceleration (Quantity | None) – The acceleration.
jog_maximum_velocity (Quantity | None) – The maximum velocity.
jog_stop_mode (StopMode | None) – The stop mode.
- Return type:
None
- set_velparams(minimum_velocity=None, acceleration=None, maximum_velocity=None)#
Set velocity parameters on the device.
All parameters of this function are optional. Only fields with values are updated on the device.
- Parameters:
minimum_velocity (None | Quantity) – The minimum velocity. According to the documentation, this should always be 0. Therefore this parameter can be left unused.
acceleration (None | Quantity) – The acceleration.
maximum_velocity (None | Quantity) – The maximum velocity.
- Return type:
None
- class pnpq.devices.odl_thorlabs_kbd101.OpticalDelayLineVelocityParams(*args, **kwargs)#
Bases:
UserDict[str,Any]- Parameters:
args (Any)
kwargs (Any)