TSST implementation in Psychopy

Hi everyone!

I want to implement a part of the Trier Social Stress Test into a Psychopy experiment and I am not sure whether it its realistic to make it that way.

So the task is, that the subject is presented a starting number, there’s 5 different starting numbers (1013, 1048, 1000, 1021, 1005). The subject is presented the starting number and from that on, they are supposed to substract 13 from it for one minute. If the subject counted wrong, its supposed to start from the beginning. After one minute the next starting number is presented.

How can i do this with the psychopy builder? With lists or without?

Thank you for your help!

I would use concentric loops. The outer loop would point to a spreadsheet containing the 5 trials (starting numbers). The inner loop would have no spreadsheet and lots of reps (e.g. 100). The target could be set to the starting number in a routine prior to the starting loop (or in Begin Routine in a clause if inner_loop.thisN == 0). If the answer is correct then subtract 13 from the current target, otherwise reset it to the starting number. Break out of the inner loop when a bespoke clock time reaches 60.