gui.widget_newport_control module

This widget contains the functionality of the newport_control hardware class provided in newport_control.py. The widget can be executed as a standalone version if the micrometerscrew is connected and the correct port is chosen.

Functionalities provided in this widget:

  1. Display COM port

  2. Set the position in mm to where the screw should move to (if the parameters in the newport screw configuration have been changed the screw can drive to far. If someone changed the configuration it is extremely bad and I wish him Patla paikhana)

  3. Set the velocity in mm/s

  4. Set an upper and lower bound between which the stage can move in continuous movement. These bounds are also used for the split sample experiment.

  5. Choose the stepsize to move it in steps between lower and upper bound.

  6. Start continuous movement which is not influenced by the stepsize parameter (since it is continuous).

class WidgetNewportControl(*args, obj=None, mu_screw: Optional[newport_control.NewportControl] = None, **kwargs)[source]

Bases: PyQt5.QtWidgets.QGroupBox, ui_newport_control.Ui_GroupBox_newport

toggle_continuous_move()[source]
update_lower_bound()[source]
update_position()[source]
update_upper_bound()[source]
update_values()[source]
update_velocity()[source]
work(qt_obj: <module 'PyQt5.QtWidgets' from 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\PyQt5\\QtWidgets.pyd'>, mu_screw_attr: str, mu_screw_method: str)[source]