I am presenting stimuli in my experiment where letter ‘X’ serve as target and rest of the letters as non targets. All the letters appear without categorisation into target and non target conditions coz of the randomisation. Then I define target and non target letters to be saved with their onset timings separately in the csv data file by following code in Each Frame and End Routine tabs. As you can see in the attached screenshot(#2) of csv data file that “xcpt.started” are the autosaved onset timings for each letter as they appear. But I would like to save the onset timings for letters as Targets (‘X’) and Nontargets, however there is always a difference in autosaved (“xcpt.started”) and manually saved (Onset-Target/Nontarget) onset timings. Screenshot (#builder 1) of the design is also attached.
Could anyone suggest what can be wrong or I’m using a wrong timer? Thanks!
Btw I also tried to use xcpt.tStart or text_X.tStart but then it gives error that there’s no attribute as xcpt or text_X.
#Each frame tab: saveas Target/Nontarget if text_X == 'X' : thisExp.addData('Target',text_X) else: thisExp.addData('Non-Target',text_X)
#End routine tab: save Onset times of Targets/Nontargets if text_X == 'X' : thisExp.addData("Onset-Target",core.getTime()) else: thisExp.addData("Onset-Nontarget",core.getTime())