offlineACF : ANSI-C code (Offline usage) for Real-time data acquisition incorporating high-speed software correlator for single-molecule spectroscopyParent
Key input parameters
        double mdelay_s : the maximum delay time for the acf function [s]
        double clockPeriod_s : the clock period of the counter card [s]
        double meanCountRate_cps : average count rate [#/s] (can be calculated by offline)
        double binWidth_s : binwidth to display the time trace [s]
Batch files and executables, sample data file
cl.bat Compile and Link the programs using gcc compiler ()
r.bat Run the tstset and main (not necessary, and must edit as main command-line parameters are fixed)
p.bat Plot the graphs using gnuplot
offline.exe Offline program that calls the ANSI-C routines (does ACF, CCF, TT, and HST)
tstset.exe Generate Testsets to demonstrate acf, tt and hst
ipt-real.bin Sample binary interphoton arrival time file (from R6G diffusion experiment)
Source Code
for Main routines
offline.c calls all the routines to work on an existing ipt data file
tstset.c generate test interphoton arrival time data file named `ipt.bin`
for functions in ANSI-C for data acquisition system (convert to DLL for realtime usage or Labview calls)
ipt2tt.c functions to convert interphoton time to time trace
ipt2tt.h header
acf.c functions for realtime ACF
acf.h header
ipt_in.c functions to open and read a binary file point by point (offline only. For online usage, see LabVIEW code)
ipt_in.h header (includes the typedef for the ipt data)
stats.c functions to do statistics point by point
stats.h header
histo.c functions to make histogram point by point
histo.h header
Files used by wgnuplot.exe to control plotting. (wgnulot.exe is a Free Download from http://www.gnuplot.info/)
racf.pltraw acf
nacf-log.pltnormalized acf : counts vs log(x)
tt.plttime trace
hst.pltinterphoton time histogram