OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) y
What are you trying to achieve?:
I have created an experiment testing reactions to subliminal input with an initial middle target that will in some trials change for 1 frame to 1 of 8 surrounding targets, all presented in a 3x3 grid. After the loop I want to provide feedback on not just if the correct target was chosen, but instead I want to separate it out into 4 different conditions:
- How many times did participant correctly change from middle target to newly presented target?
- How many times did participant correctly choose the middle target (when no new target was presented)?
- How many times did participant incorrectly move to another target when they should have chosen original middle target?
- How many times did participant incorrectly choose middle target when they should have moved to a newly presented target?
What did you try to make it work?:
I have provided feedback after every trial (within loop) with the following code: (I use the numpad to input target in a 3x3 grid, “num_5” being the middle/original target)
…if key_response.keys == “num_5”:
…msg=“Correct! Target remained. RT=%.3f” %(key_response.rt)
…msg=“Correct! Target moved. RT=%.3f” %(key_response.rt)
…msg=“Oops! That was wrong.”
I am thinking it should be possible to tell Psychopy to save an additional list of 1’s and 0’s similar to what is built in with key_response.corr, and insert that command into in relevant if/else statements above, but I don’t know how I might do that.
I am very new to python and psychopy, so I might be missing some obvious solution.