Presenting stimuli simultaneously on two screens

OS : Win10
PsychoPy version : v2021.1.4
What are you trying to achieve?:

I am trying to show two stimuli on two different screens at the same time.

What did you try to make it work?:

I have created to screens at the beginn of the experiments

win1 = visual.Window(
size=[1920, 1080], fullscr=True, screen=0,
winType=‘pyglet’, allowGUI=False, allowStencil=False,
monitor=‘Monitor’, color=[-1,-1,-1], colorSpace=‘rgb’,
blendMode=‘avg’, useFBO=False,

win2 = visual.Window(
size=[1680,1050], screen=1,
winType=‘pyglet’, allowGUI=False, allowStencil=False,
monitor=‘tablet’, color=[-1,-1,-1], colorSpace=‘rgb’,
blendMode=‘avg’, useFBO=False,

Then i created my stimuli in each frame in a second Routine. I have just copied them from this thread Presenting stimuli on two screens

left_text = visual.TextStim(win1, text=‘Left’, flipHoriz=True)
right_text = visual.TextStim(win2, text=‘Right’, flipHoriz=True)


What specifically went wrong when you tried that?:

Stimuli are only presented on one screen. Which screen depends on the experimental settings (parameter screen - screen)
If i put 0 or 2 in it, the stimuli only appears at win1
If i put 1 in it, the stimuli only appears at win2
If i don’t put anything in there, or something like (1,2); 1&2, etc. I get the following error:
" requestedScreenNumber = int(self.params[‘Screen’].val)
ValueError: invalid literal for int() with base 10: ‘’

Any help would be highly appreciated!

1 Like

If anyone has the same problem: adding fullscr= True in win1 most likely caused the problem