Skip to content

Commit 129b304

Browse files
committed
Merge branch 'main' of https://github.com/PicoQuant/snAPI
2 parents 626f377 + 82cd3b7 commit 129b304

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,34 @@
55
print("Switched to:",matplotlib.get_backend())
66
import time
77

8+
# Sequence-mode g(2) correlation over measurement time
9+
# ====================================================
10+
# This demo demonstrates how sequence mode can be used to acquire a gapless
11+
# series of second-order correlation measurements, g(2), from photon events
12+
# recorded with a PicoQuant time tagging device or from a PTU file.
13+
#
14+
# The script configures a g(2) correlation between a signal channel and an idler
15+
# channel. A fixed delay is applied to the signal channel with a snAPI
16+
# manipulator so that the correlation feature is shifted into the selected
17+
# correlation window.
18+
#
19+
# Setup:
20+
# The signal and idler detector channels, correlation window, bin width,
21+
# acquisition time, and sequence duration are defined in the script. The sequence
22+
# duration determines the length of each consecutive correlation measurement in
23+
# the gapless measurement sequence.
24+
#
25+
# The correlation module is run in sequence mode. Instead of repeatedly starting
26+
# and stopping separate measurements, snAPI divides the acquisition into
27+
# consecutive time slices and returns one g(2) curve for each slice.
28+
#
29+
# During acquisition, the script displays the sequence as a 2D plot with
30+
# correlation delay tau on one axis and measurement time on the other. This is
31+
# useful for observing changes in photon correlations over time without gaps
32+
# between the individual correlation measurements, for example when monitoring
33+
# source stability, alignment drift, blinking, or other time-dependent changes in
34+
# a photon-pair or single-photon experiment.
35+
836
if(__name__ == "__main__"):
937

1038
sn = snAPI()

0 commit comments

Comments
 (0)