Saving trial data using csv writer

So this sounds like just a single value. What you need to do is maintain a list of values from each trial (and the corresponding responses), and zip those together.

i.e. in the “begin routine” tab, something like:

if your_loop_name.thisN == 0 # only on the first trial
    word_list = [] # initialise blank lists
    cue_input_list = []

Then in the “End routine” tab, something like:

# grow the lists on each trial:
word_list.append(word)
cue_input_list.append(cue_input)
1 Like