|
def | __init__ (self, config, kwargs) |
|
def | on_activate (self) |
|
def | on_deactivate (self) |
|
def | get_constraints (self) |
| Retrieve the hardware constrains from the motor device. More...
|
|
def | move_rel (self, param_dict) |
| Moves stage in given direction (relative movement) More...
|
|
def | move_abs (self, param_dict) |
| Moves stage to absolute position (absolute movement) More...
|
|
def | abort (self) |
| Stops movement of the stage. More...
|
|
def | get_pos (self, param_list=None) |
| Gets current position of the stage arms. More...
|
|
def | get_status (self, param_list=None) |
| Get the status of the position. More...
|
|
def | calibrate (self, param_list=None) |
| Calibrates the stage. More...
|
|
def | get_velocity (self, param_list=None) |
| Gets the current velocity for all connected axes. More...
|
|
def | set_velocity (self, param_dict=None) |
| Write new value for velocity. More...
|
|
def | __init__ (self, manager, name, config=None, callbacks=None, kwargs) |
| Initialise Base class object and set up its state machine. More...
|
|
def | log (self) |
| Returns a logger object.
|
|
def | is_module_threaded (self) |
| Returns whether the module shall be started in a thread.
|
|
def | on_activate (self) |
| Method called when module is activated. More...
|
|
def | on_deactivate (self) |
| Method called when module is deactivated. More...
|
|
def | getStatusVariables (self) |
| Return a dict of variable names and their content representing the module state for saving. More...
|
|
def | setStatusVariables (self, variableDict) |
| Give a module a dict of variable names and their content representing the module state. More...
|
|
def | getConfiguration (self) |
| Return the configration dictionary for this module. More...
|
|
def | get_connector (self, connector_name) |
| Return module connected to the given named connector. More...
|
|
def | __new__ (cls, name, bases, attrs) |
| Collect declared Connectors, ConfigOptions and StatusVars into dictionaries. More...
|
|
This is the dummy class to simulate a motorized stage.
Example config for copy-paste:
motor_dummy: module 'motor.motor_dummy.MotorDummy'
def motor_dummy.MotorDummy.get_constraints |
( |
|
self | ) |
|
Retrieve the hardware constrains from the motor device.
- Returns
- dict: dict with constraints for the magnet hardware. These constraints will be passed via the logic to the GUI so that proper display elements with boundary conditions could be made.
Provides all the constraints for each axis of a motorized stage (like total travel distance, velocity, ...) Each axis has its own dictionary, where the label is used as the identifier throughout the whole module. The dictionaries for each axis are again grouped together in a constraints dictionary in the form
{'<label_axis0>': axis0 }
where axis0 is again a dict with the possible values defined below. The possible keys in the constraint are defined here in the interface file. If the hardware does not support the values for the constraints, then insert just None. If you are not sure about the meaning, look in other hardware files to get an impression.