daplis_rtp.gui.tabs.synchronization module
Synchronization: drive a two-board acquisition over TCP.
This tab talks to two running instances of LinoSPAD_synchro.exe, one
per board: it enables the external clock, verifies both boards are
locked to it, and starts acquisition on both simultaneously. It is
the GUI equivalent of the acquire.py command-line tool.
Saving is handled by each board’s own GUI: when a board acquires, if its
AutoSave is on it writes to the folder configured there
(SavePrefix). This tab therefore does not choose a save location -
set it in each LinoSPAD_synchro instance.
Prerequisite: both board apps must already be running and “Listening” on their TCP ports (default 5555 / 5556) before this tab is used. Use 25 MHz on the external clock; 20 MHz never programs the DCM.
The TCP calls run in a background AcquisitionWorker, because
RUNHISTOGRAMS blocks until the acquisition finishes and so must not
run on the GUI thread.
The tab has no plot, but it is built in the same shell as the four that do: the log sits where their canvas sits, the clock status sits where their axis limits sit, and the three buttons sit in the same three slots. Moving between tabs then moves nothing under the hands.
- class daplis_rtp.gui.tabs.synchronization.AcquisitionWorker(boards, check_only, acq_timeout, parent=None)[source]
Bases:
QThreadRun enable -> check -> acquire off the GUI thread.
Emits signals for logging, per-board clock status, and completion; never touches widgets directly. Saving is left to each board’s GUI (AutoSave).
- clock
str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- clock_fail
str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- done
str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- log
str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- class daplis_rtp.gui.tabs.synchronization.Synchronization(parent=None)[source]
Bases:
TabShellTab for controlling two-board synchronized acquisition over TCP.
- BOARD_INFO = {0: ('Board 0 (dev 0 / #33)', 5555), 1: ('Board 1 (dev 1 / #21)', 5556)}
- HINT = "Both LinoSPAD_synchro.exe instances must be running and 'Listening' first. Use 25 MHz on the external clock. Each board saves to its own GUI's AutoSave path."