daplis_rtp.gui.live_timestamps_tab module
This script generates the tab for online sensor population plotting.
The tab can be used to introduce changes to the setup while following the changes in real-time (depending on the actual data file size, the plotting can take minutes).
- class daplis_rtp.gui.live_timestamps_tab.LiveTimestamps(parent=None)[source]
Bases:
QWidget
- __init__(parent=None)[source]
Creation of the tab.
The tab is generated with a ‘Browse’ button along with a line edit field for choosing/inserting the address of the data file to plot. Combo boxes for LinoSPAD2 daughterboard number and the firmware version are generated. A check box for applying and a button for undoing the mask are generated. A spin box for the number of timestamps per pixel/TDC per cycle is provided. A widget with a grid of 4x64 of checkboxes with pixel numbers for masking single pixels is generated. A check box for switching between a linear and a logarithmic scale of the plot along with a check box for plotting vertical lines at positions 64, 128, and 192 are provided (the latter can be used for firmware versions 2208 and 2212s for setup alignment). Buttons ‘Refresh plot’ for refreshing the plot and ‘Start stream’ for plotting the last file found are created. Two sliders for the left and right limits for the x-axis are created.
- change_path()[source]
Called when address is inserted to the line edit.
Sets the path variable to the address inserted.
- get_dir()[source]
Called when the ‘browse’ button is pressed.
Sets the path variable to the address chosen.
- presetmask_pixels()[source]
Called when the check box ‘Preset mask’ is checked.
Uses the masking data provided in the ‘params’ folder for masking of the warm/hot pixels. Uses the LinoSPAD2 daughterboard number to load appropriate data.
- reset_pix_mask()[source]
Function for resetting the pixel masking by unchecking all pixel mask checkboxes.
- slot_checkplotscale_2()[source]
Called when state of the check box for scale is changed.
Switches between logarithmic and linear scale of the plot.
- slot_refresh()[source]
Called when the ‘Refresh button’ is pressed.
Refreshes the plot, either the current one or updates with the new data if new data were taken.
- slot_startstream()[source]
Called when the ‘Start stream’ button is pressed.
Starts an infinite cycle of refreshing the plot when new files are found in the folder.
- slot_updateLeftSlider()[source]
Called when left slider state has changed.
Updates the left x-axis limit based on the position of the slider.