OS : Win10
PsychoPy version: V2021.1.4
**Standard Standalone? : yes
**What are you trying to achieve?: I am trying to build an experiment in which two participants, after completing a target-tracking-and-detection task, have to make independent ratings. Each participant is seated in from of their own monitor, and I would like to present the rating scales so that each participant only sees their own scale and their own rating, on their monitor. The rating scales do not have to be presented simultaneously on each screen, but can be presented one after the other.
**What did you try to make it work?: I built an experiment with 2 routines in the Builder. One rating scale is presented per routine, i.e. slider1 in routine 1, and slider2 in routine 2. The rating scales should be presented on separate screens, corresponding to the two monitors respectively.
To set up two screens, I added a custom code component, which in the Begin experiment tab sets up 2 screen:
SCREEN_SIZE = (1920,1080) # screen res, my screens are identical
win0 = visual.Window(SCREEN_SIZE, screen=0, fullscr=True)
win1 = visual.Window(SCREEN_SIZE, screen=1, fullscr=True)
I also added code components that specified that slider1 should be presented in win0, and slider2 in win1, in the begin routine tab, for each routine using the code:
For slider 1:
slider1 = visual.Slider(win=win0, name=‘slider1’,
size=(1.5, 0.1), pos=(0, 0), units=None,
labels=None, ticks=(1, 2, 3, 4, 5), granularity=0.0,
style=‘rating’, styleTweaks=(), opacity=None,
color=‘LightGray’, fillColor=‘Red’, borderColor=‘White’, colorSpace=‘rgb’,
font=‘Open Sans’, labelHeight=0.05,
flip=False, depth=-1, readOnly=False)
and similar for slider 2.
I also specified in each routine win0.flip() or win1.flip(), for each routine/screen
What specifically went wrong when you tried that?:
With what I described, I am able to set up two screens on two monitors, and present the first rating scale only on one monitor, while the second monitor remains with the blank screen. However, I am not able to make a rating on the scale. Essentially, I think when I set up the two screens, I am not able to also have “two” mouse clicks, one for each screen.
So, I am wondering id there is a way to “double up” mouse clicks, so that I can make a rating on slider 1 in screen 1, and then subsequently another rating on slider 2 in screen 2
Thanks a lot in advance!