OS (e.g. Win10): Windows 10
PsychoPy version (e.g. 1.84.x): 2020.2.10
I want to know the duration for which a stimulus was presented in my experiment. I set the time on 4 seconds, but participants are allowed to be faster than that by continuing the experiment before the 4 seconds are ofer.
In order to know the time they could have looked at the stimuli, I want to know the onset/offset times (which I asked for in the builder view > image properties > data).
In my offline (i.e. psychopy on desktop) csv file, I get two colomns:
prpaint.started → with values like 2512985889997790 and 27450827699969500
prpaint.stopped → None (So I assume something already goes wrong here?)
When I try my experiment online, I get neither.
My question is therefore: How do I get the image presentation duration in my csv file in my online study?
I tried adding this to the Py and JS End Routine Code components in the same routine as I presented the image.
thisExp.addData('prpaint.stopped', prpaint.stopped) psychoJS.experiment("prpaint.stopped", prpaint.stopped);
This gave me the error:
AttributeError: ‘ImageStim’ object has no attribute ‘stopped’
Thank you very much for any help