|
5 | 5 | print("Switched to:",matplotlib.get_backend()) |
6 | 6 | import time |
7 | 7 |
|
| 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 | + |
8 | 36 | if(__name__ == "__main__"): |
9 | 37 |
|
10 | 38 | sn = snAPI() |
|
0 commit comments