Ulm-IQO / qudi

(Legacy project) A modular laboratory experiment management suite, predecessor to qudi-core.
GNU General Public License v3.0
166 stars 141 forks source link

New trigger interface #629

Open kay-jahnke opened 3 years ago

kay-jahnke commented 3 years ago

New tool chain for sending simple digital triggers. These triggers are software timed and therefore are not recommended for time sensitive triggering.

Description

An interface was written including a dummy hardware. Also a logic and gui module were created for demonstration. As the most common use case of triggers is automation, the triggers will probably most often be fired from a notebook and not by the gui.

Motivation and Context

Sometimes an external controller needs to be reset or a state change needs to be triggered.

How Has This Been Tested?

tested with dummy on Linux 5.9.1-1-MANJARO

Screenshots:

very simple GUI with push buttons: image

Types of changes

Checklist:

GRexBayer commented 3 years ago

When starting the dummy version on Windows 10, Windows has problems with the geometry of the application window. Loading the trigger module results in:

QWindowsWindow::setGeometry: Unable to set geometry 105x86+907+483 on QWidgetWindow/'MainWindowWindow'. Resulting geometry: 120x86+907+483 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 50x86, maximum size: 16777215x16777215). QWindowsWindow::setGeometry: Unable to set geometry 105x117+907+483 on QWidgetWindow/'MainWindowWindow'. Resulting geometry: 120x117+907+483 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 50x117, maximum size: 16777215x16777215). QWindowsWindow::setGeometry: Unable to set geometry 105x148+907+483 on QWidgetWindow/'MainWindowWindow'. Resulting geometry: 120x148+907+483 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 56x148, maximum size: 16777215x16777215). QWindowsWindow::setGeometry: Unable to set geometry 105x179+907+483 on QWidgetWindow/'MainWindowWindow'. Resulting geometry: 120x179+907+483 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 56x179, maximum size: 16777215x16777215).

GRexBayer commented 3 years ago

Besides the Geometry problem by Windows 10, the dummy version seems to run without problems. Pressed all the buttons and they act as expected. OS info: OS Name Microsoft Windows 10 Pro Version 10.0.19041 Build 19041

kay-jahnke commented 3 years ago

@GRexBayer fixed the warnings by reworking the gui. Please test again.

GRexBayer commented 3 years ago

Found no warnings, the window is displayed with an appropriate size! Checked hopefully thoroughly enough. Pressed all buttons, deactivated the module and restarted QuDi.