Iterate over all timingtest result files (‘Res_flipconfig_xxxx’) which
contain valid high precision flip timestamps, either based on
‘p’hotodiode measurements or ‘d’atapixx measurements.
measMethod must be ‘p’ or ‘d’ for photo-diode measurement via RTBox, or
The recursive search for matching result files starts at /includes the
current working directory.
The script iterates over each matching file and adds all collected raw
and high precision timestamps to a large array of timestamps. At the end
of iteration, the pooled dataset is analyzed for mean, max and min
deviation between Flip onset timestamps and measured timestamps. The
total range of deviation and the standard deviation from the mean (==
timestamp variability) is computed as well. This is done on the raw
timestamps and high precision timestamps. End results are printed and
scatterplots of all individual samples are shown.
This script was used to compute the values of the “Stimulus timestamp
precision” result table of Mario Kleiner’s ECVP-2010 poster “Visual
stimulus timing precision in Psychtoolbox-3: Tests, pitfalls &
solutions”. The same data is used in the corresponding table of his PhD