gui.widget_thorlabs_mc2000 module

This widget contains the functionality of the thorlabs chopper mc2000 hardware class provided in thorlabs_mc2000.py. The widget can be executed as a standalone version if the correct chopper is connected and the correct port/settings are chosen.

Functionalities provided in this widget:

  1. Choose the chopper which should be controlled via a comboBox

  2. Display the blade type

  3. Set and read out the phase of the chopper

  4. Set and read out the harmonic divider

  5. Start the chopper with the given parameters

  6. Update the chopper values described above in case someone used the actual chopper controller to change some settings.

class WidgetChopper(*args, obj=None, chopper: dict = {}, **kwargs)[source]

Bases: PyQt5.QtWidgets.QGroupBox, ui_thorlabs_mc2000.Ui_GroupBox_chopper

current_chopper()[source]

Create method which holds information about which combobox item is currently selected.

Returns

Returns key to currently active chopper.

Return type

str

read_values()[source]
update_combobox()[source]
update_enable()[source]
update_harmonic_divider()[source]
update_phase()[source]
update_values()[source]
work(qt_obj: <module 'PyQt5.QtWidgets' from 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\PyQt5\\QtWidgets.pyd'>, chopper_attr: str, chopper_method: str)[source]