In the Stroop paradigm, only word blocks are presented without any error or error feedback. Please help me. Thank you!

OS : Win11
PsychoPy version (2023.1.2):
Standard Standalone? (yes)
I want to implement the task of judging different color blocks in the Stroop paradigm and provide correct and incorrect feedback. I chose three colors (red, green, and blue) and created them into Excel. I specified that if the font appears red, press the left key, if the font appears green, press the down key, and if the font appears blue, press the right key. The program will make a correct or incorrect judgment on the participants’ buttons and provide feedback, that is, correct or incorrect buttons appear in the center of the screen.

OS (e.g. Win10): Win11
PsychoPy version (2023.1.2):
**Standard Standalone? (yes)
I want to implement the task of judging different color blocks in the Stroop paradigm and provide correct and incorrect feedback. I chose three colors (red, green, and blue) and created them into Excel. I specified that if the font appears red, press the left key, if the font appears green, press the down key, and if the font appears blue, press the right key. The program will make a correct or incorrect judgment on the participants’ buttons and provide feedback, that is, if there is a correct or incorrect error in the center of the screen.

What have you tried so far?

Is there a problem with the programming language that only displays word blocks as feedback.

This is my programming language.
At the beginning of the experiment
feedback = “”
a = “”
At the beginning of the routine section
if key_resp_2.corr == 1:
feedback = “正确”
else:
feedback = “错误”
a.append(key_resp_2.corr)
b = sum(a[0:])
if b == 24:
trials.finished = True
feedback = “恭喜。\n已经做对了24个,退出本次循环”

It seems that your code is not a problem. Is it possible that your block is set to constant instead of every frame.

Thank you for your reminder. I really didn’t set it up.