Repeat Correct Coding Block until each color is named two times correctly - Stroop task
Hello people!
I have a Stroop experiment with 4 different blocks which will be counterbalanced across participants (do you have any suggestions considering counterbalancing across the blocks?). It all works great, but I have another issue I would like you to ask. The experiment starts with a correct coding block of 12 trials, so that the participant needs to identify the correct color with the correct colored answer button. After every given answer the subject receives feedback with correct or false. This works fine. However, I would like to repeat the coding block until each color has been identified two times correctly (total of 6 colors, that's why the block consists of 12 trials) and only THEN the next phase of the experiment starts.
Do you know a valide break if condition that works for this matter? Or something else? I've tried several ways, f. e. http://forum.cogsci.nl/index.php?p=/discussion/2208/solved-repeat-practice-block-if-accuracy-less-than-80 or the note "loops, break if" which directly adresses my issue http://psy.swan.ac.uk/staff/freegard/opensesame/tips/# , but nevertheless, I didn't manage to programm it the right way even though I did the same exact thing (maybe the feedback condition interfered somehow(?)).
I am a recent convert to OpenSesame and am a bit lost. Do you have any ideas for this problem? Thank you very much!!!
Nathalie
Comments
Hi Nathalie,
> do you have any suggestions considering counterbalancing across the blocks?
> However, I would like to repeat the coding block until each color has been identified two times correctly (total of 6 colors, that's why the block consists of 12 trials) and only THEN the next phase of the experiment starts.
If I understand correctly, this means that you want to repeat the entire block if the accuracy was less than 100%, right? If so, then you could for example do this by having a
repeat_cycle
item right after theloop
that you want to repeat, and use[acc] < 100
as a repeat-if statement.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
thank you very much for your suggestions! I've tried it but now the trials continue endlessly - by that I mean the practice block does not move on when accuracy = 100 % is reached. Do you mind checking this part of my experiment which is called "Exp1_Farbkodierung_V1_loop"? This way it might be easier to spot the error that I'm failing to detect. This would be absolutely amazing!!!
Cheers!
Nathalie
Hi Nathalie,
Why don't you take this opportunity to learn a bit about debugging? If you open the variable inspector (Ctrl + I) and search for
acc
, you can keep track of the accuracy while the experiment is running. Does this behave as you'd expect it to? If so, then there's something wrong with the logic of therepeat_cycle
item. If not, then there's something wrong with how you keep track of accuracy. That way you can gradually find out where the problem lies. I suspect that it's something trivial for which you don't really need my help!Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
it did'nt work in the first place, because of an outer- and innerloop - that's why the repeat_cycle didn't run. Now everything works perfectly fine the way I wanted the program to!
I appreciate your quick help and thank you very much!!!
Cheers!
Nathalie