photons.equipment.widgets.dmm module

Widget for a digital multimeter.

class photons.equipment.widgets.dmm.FetchWorker(connection, trigger_mode)[source]

Bases: Worker

Fetch samples from the DMM in a worker thread.

process()[source]

Fetch the samples from the DMM.

class photons.equipment.widgets.dmm.DMMWidget(connection, *, parent=None)[source]

Bases: BaseEquipmentWidget

Widget for a digital multimeter.

Parameters:
  • connection (DMM) – The connection to the digital multimeter.

  • parent (QWidget) – The parent widget.

get_settings()[source]

Get the configuration settings of the DMM.

Return type:

Settings

on_digits_spinbox_changed(_)[source]

Change the number of digits in the uncertainty to retain.

Return type:

None

on_edit_configuration()[source]

Show the QDialog to edit the configuration settings of the DMM.

Return type:

None

on_fetched(samples)[source]

Samples were fetched.

Return type:

None

on_live_checkbox_changed(checked)[source]

Start or stop the QTimer.

Return type:

None

on_show_plot()[source]

Show the RealTimePlot widget.

Return type:

None

on_settings_changed(settings)[source]

Slot for the connection.config_changed signal.

Return type:

None

on_timer_timeout()[source]

Start the worker thread.

Return type:

None

notification_handler(*args, **kwargs)[source]

Handle a notification emitted by the DMM Service.

Return type:

None

restart_timer_and_thread()[source]

Restart the Thread and the QTimer.

Return type:

None

stop_timer_and_thread()[source]

Stop the QTimer and the QThread.

Return type:

None

update_tooltip()[source]

Update the tooltip of the ‘value’ LineEdit.

Return type:

None

closeEvent(event)[source]

Override QtWidgets.QWidget.closeEvent() to stop the QTimer and QThread.

Return type:

None

class photons.equipment.widgets.dmm.ConfigureDialog(parent)[source]

Bases: QDialog

Edit the configuration of the DMM.

auto_delay_changed(checked)[source]

The Trigger auto-delay CheckBox was clicked.

Return type:

None

on_apply_clicked()[source]

The Apply button was clicked.

Return type:

None

on_reset()[source]

Send the *RST command to the digital multimeter.

Return type:

None

save_settings()[source]

Save the settings to the digital multimeter.

Return type:

None

closeEvent(event)[source]

Overrides QtWidgets.QWidget.closeEvent() and maybe prompt to save.

Return type:

None