URL of experiment: Pavlovia
Hi there,
So I am doing a paced serial addition test in psychopy v2022.2.4 on Mac. I have managed to get it working offline but once I try to sync it into Pavlovia the nested loops do not work nor does it store any responses in the excel sheet.
This is the code I have used for the nested loops
Begin routine
if ((trials.thisN === 0)) {
score = 0;
}
End Routine
if (key_resp_3.corr) {
score = (score + 1);
}
if (((score / (trials.nTotal + 1)) >= 0.75)) {
trials.finished = true;
trials_2.finished = true;
}
This is what my loop looks like
This is the keyboard settings
Force end of routine - yes
Allowed keys = ‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,‘9’,‘0’
Store all keys
Store correct - yes
correct answer $correctAns
and the rest checked off as well
This is what shows up in the excel sheet when I do the experiment and put in key responses
I have tried many things but nothing seems to be working, I would appreciate any help.
Thank you