If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Ubuntu 20.04
PsychoPy version (e.g. 1.84.x): 2022.2.4
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
I am trying just to control through feedback text that triggers in an EEG experiment are sent correctly. I have created some text word, showing the key of corrected response, the key which has been actually pressed and a no response message. I have used the following code to do this:
What did you try to make it work?:
actualkey = respo.keys
ccc = ''
if responded == 1 and respo.corr == 1:
ccc = 'corr'
port.writeRegister(FIO1,65280+ int(block_nr)+4)
elif responded == 1 and respo.corr == 0:
ccc = 'inco'
port.writeRegister(FIO1,65280+ int(block_nr)+5)
elif responded == 0:
ccc = 'noresp'
port.writeRegister(FIO1,65280+ int(block_nr)+6)
What specifically went wrong when you tried that?:
Anyway, if I press either left or right key and then, in the subsequent trial I provide no response, that response key is saved. How could it be possible to fix it? Thanks for responding
Include pasted full error message if possible. “That didn’t work” is not enough information.