URL of experiment: https://gitlab.pavlovia.org/michele_conni/name
Description of the problem: I know that is a common problem, and a lot of stuff has been posted on how to solve it, but I tried everything I’ve found, and nothing worked.
I’m working with the builder, and I want to add the array contining the order of the images in each run of the loop, called
images, to my output file in Pavlovia.
This array is redefined at the begin of each loop (at the Begin Routine of a code block) and it is a general variable, thus I declared it without specifying the
var in JS.
psychoJS.experiment.addData('images', images); to save in the End Routine of the block, but it does not work: when I run the Pilot experiment, there is no ‘images’ column.
I tried to use both the name of the loop (
trials.addData('images', images);) and of the experiment (
trial.addData('images', images);) instead of it, but nothing worked…
Do you have any suggestion?