Skip to content

Commit 63d293c

Browse files
Update Demo_2Harps_1_stream_RefIn_RefOut.py
1 parent 776da28 commit 63d293c

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

demos/Demo_2Harps_1_stream_RefIn_RefOut.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@
44
from matplotlib import pyplot as plt
55
print("Switched to:",matplotlib.get_backend())
66

7+
# Two synchronized TCSPC devices — combined histogram stream
8+
# ==========================================================
9+
# This demo demonstrates how photon events from two synchronized PicoQuant
10+
# time tagging devices can be combined into a single histogram stream.
11+
#
12+
# Setup:
13+
# The master device provides the timing reference and controls the measurement
14+
# start. Its 10 MHz reference output is connected to the external reference
15+
# input of the slave device. The master's measurement-active signal is
16+
# additionally connected to the slave control input C1.
17+
#
18+
# The slave is configured to use the external 10 MHz reference and waits for the
19+
# measurement-active gate from the master before acquiring data. Selected slave
20+
# input channels are then imported into the master's data stream using a snAPI
21+
# stream manipulator.
22+
#
23+
# The resulting histogram contains both the master's own channels and the
24+
# imported slave channels on a common time axis. This is useful for multi-device
25+
# measurements that require synchronized acquisition across two TCSPC units while
26+
# processing the combined photon stream as one measurement.
27+
728
if(__name__ == "__main__"):
829

930
master = "1000509"
@@ -58,4 +79,4 @@
5879
plt.title("Counts / Time")
5980
plt.pause(0.1)
6081

61-
plt.show(block=True)
82+
plt.show(block=True)

0 commit comments

Comments
 (0)