Hello, I am in the last step of building my experiments. I am trying to save in an excel file data suitable for analysis and fMRI synchronization. I have three questions:
-
Does Psychopy write data on excel spreadsheet just when the experiment is brought at its end? (i.e. all the trials are being performed), I noticed that when I push esc to end the experiment before the time no excel data are saved. It is not a problem but I would like a confirm on that and also I would like to know if there is any way to overcome this limit.
-
More compelling, I am trying to use the addData function to 1) write down my randomised jittered fixation cross duration. I also would like to use the same function to 2) write on my excel file the time stamps of the stimuli appearing on the screen. I followed the advice on other threads using the following code component in the code that randomize the duration of my fixation cross, but I do not achieve my goal. I tried to put this component both in “start routine” or “end routine” but it does not working (while the jittering is working totally fine.
thisExp.addData(‘fix_duration’, jitter)
If I want to use addData to add the time stamp of each of my stimuli on the screen, how should I do? Where my code component should be located? Do I need a code for each stimuli I present (they are quite a lot during each trial) or a code for each routine may be enough?
- For one of my experiment the excel file is not created at all (also if I bring at conclusion the experiment). A Csv file is created having just the heading (i.e. the name of my variables, including “jittering”) but without data. This experiment has a lot of variables to write, it may depends on that? How can I solve this problem?
Thank you