Hi all, I’m finishing programming an experiment with EEG, but I’m having problems with the win.flip(). The code sends the triggers, the problem is that I have a static image during a loop and every time I pass the code through the win.flip() this image flickers. This could interfere with my EEG signal. If I remove the win.flip() it stops flickering, but of course it doesn’t send me the triggers for the EEG.
if key_resp_2.keys =='m':
if key_resp_2.rt < 1.8 and amcuevoiceright == 'audios/mam.wav':
trigger.setData(1)
ThisResp = "Fast"
print("rt", key_resp_2.rt)
thisExp.addData("Fast", ThisResp)
if key_resp_2.keys =='m':
if key_resp_2.rt >= 1.8 and key_resp_2.rt <= 3.0 and amcuevoiceright == 'audios/mam.wav':
trigger.setData(2)
ThisResp = "Norm"
print("rt", key_resp_2.rt)
thisExp.addData("Norm", ThisResp)
if key_resp_2.keys =='m':
if key_resp_2.rt > 3.0 and amcuevoiceright == 'audios/mam.wav':
trigger.setData(3)
ThisResp = "Slow"
print("rt", key_resp_2.rt)
thisExp.addData("Slow", ThisResp)
if key_resp_2.keys =='m':
if key_resp_2.rt < 1.8 and amcuevoiceright == 'audios/mal.wav':
trigger.setData(10)
ThisResp = "Fast"
print("rt", key_resp_2.rt)
thisExp.addData("Fast", ThisResp)
if key_resp_2.keys =='m':
if key_resp_2.rt >= 1.8 and key_resp_2.rt <= 3.0 and amcuevoiceright == 'audios/mal.wav':
trigger.setData(20)
ThisResp = "Norm"
print("rt", key_resp_2.rt)
thisExp.addData("Norm", ThisResp)
if key_resp_2.keys =='m':
if key_resp_2.rt > 3.0 and amcuevoiceright == 'audios/mal.wav':
trigger.setData(30)
ThisResp = "Slow"
print("rt", key_resp_2.rt)
thisExp.addData("Slow", ThisResp)
win.flip()
trigger.setData(0)
win.flip()
This is my routine in the loop!! How can I stop the image from blinking?
Thanks