Creating file with a variable immediately

Hello,

I am trying to dynamically generate gift cards for people who participate in my study. I think I have most things figured out regarding the gift card part, but I would like to be able to access the reward amount while participants are still in the Experiment. So, ideally, at a specific time in the experiment, I would write a csv file with that variable. On my end, I would generate the gift card link, upload it to Pavlovia as a csv file and read it into the experiment, while participants do something else in the meantime. Any way that this can be done? I essentially just need to be able to write a csv file with the reward variable.

Thanks in advance!

Have a look at today’s tip on how to use the Pavlovia shelf. I think you want a dictionary entry with designer scope and you could have a second experiment which accesses the dictionary. Alternatively, depending on how you are generating gift cards you could have experiment scope and just add the voucher code to the Shelf entry for the participant directly. I’m imagining that the dictionaryFieldValue for each participant would be a list containing the reward amount and the voucher code.

1 Like