I’m a student and working for my thesis. I’ve been trying to create an Emotional Stroop with Error detection key. So, the way that the experiment is: starts by displaying facials with correct and incorrect emotion names, you can respond them with ‘a’ and ‘l’. If the emotion matches with the facial, the correct answer is ‘a’ and if not ‘l’.
In the loop, the other trial is an error detection trial. The key for the error detection is ‘space’ and it has to turn ‘1’ in the output if participant’s response is not correct and participant pressed ‘space’ for it. So if i make it thru coding language;
if resp_emstrp.corr is 1 and participant pressed ‘space’, the output should be ‘0’ in resp_errdtc_emstrp.corr
if resp_emstrp.corr is ‘0’ and participant pressed ‘space’, the output should be ‘1’ in resp_errdtc_emstrp.corr
so i’ve written a code:
if resp_emstrp.corr==0 and resp_errdtc_emstrp.keys=='space': resp_errdtc_emstrp.corr==1 elif resp_emstrp.corr==1 and resp_errdtc_emstrp.keys=='space': resp_errdtc_emstrp.corr==0 thisExp.addData("erdtcstrp", erdtcstrp)
files of the experiment:
Sorry for my bad english level.