If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Mac OS 10.15.4
PsychoPy version (e.g. 1.84.x): 2020.1.2
Standard Standalone? (y/n) y If not then what?:
**What are you trying to achieve?:I want to build a task where subjects counting their first 8 breaths of each cycle simultaneously press the up button and on their ninth breath they press the down button. Feedback about the correctness should be provided (e.g. correct for “up” during the first 8 keystrokes, and false for “down”)
What did you try to make it work?: I tried to create two loops. One including the first 8 strokes and the other the 9th of each cycle. Then I specified correct answers (up for the first 8 breaths, …).
What specifically went wrong when you tried that?: Because the stimulus itself is their breaths, beside the feedback nothing will be seen on screen. However, I cannot get the feedback to show, and am not sure if I implemented the code from the feedback signal tutorials correctly. (please see the screenshots):
Structure + correct answers xlsx + firstEight loop specs
Keyboard input specs for the “firstEight” loop:
a code script in Feedback_8 includes this:
if not key_resp.keys:
- msg=“Failed to respond”*
elif resp.corr:#stored on last run routine - msg=“Correct! RT=%.3f” %(resp.rt)*
else: - msg=“Oops! That was wrong”*
Did I approach the idea the right way with this? Why does the feedback not show? Maybe you can tell from this. Many Thanks!!
Include pasted full error message if possible. “That didn’t work” is not enough information.