Mach is our primary stimulus presentation computer. It is usually connected to the monitor on the left.
Mach has the following peripheral hardware connected:
Donders is our accessory computer. It is usually connected to the monitor on the right.
Donders has the following peripheral hardware connected:
MCC | BIOPAC |
---|---|
DA0 | “Trig” |
DA1 | D9 |
DA2 | D10 |
DA3 | D11 |
DA4 | D12 |
DA5 | D13 |
DA6 | D14 |
DA7 | D15 |
If you do not use the NNL goggles, then it's probably in your interest to leave them disabled.
The DisplayFusion monitor configuration is accessible from the Desktop icon, from the Start Menu, by Right clicking on the desktop, from the system panel at the bottom Right.
A couple of the 1920×1080 profiles are accessible directly from most of the system's Apps by clicking the profile on the upper right hand corner.
The “Reset Video” desktop icon will now just revert to 1920×1080 cloned displays, with the goggles disabled.
Because of the variable nature of the display configuration, its best to login and select your preferred display profile, to always start the experiment session with a known configuration.
A CLONED configuration with goggles off, will result in a single monitor to programs like PsychToolbox and PsychoPy.
PTB:
>> run SetupPsychtoolbox.m >> screens = Screen('Screens') ans = 0 % there is only a single screen % you can use the first index, or min / max functions because there is only 1 option >> screens(1) ans = 0 >> min(screens) ans = 0 >> max(screens) ans = 0
PsychoPy:
import pyglet display = pyglet.canvas.get_display() screens = display.get_screens() screens >>[Win32Screen(x=0, y=0, width=1920, height=1080)] # screens[0] is the one and only screen
Any EXTENDED configuration, or configuration with goggles will result in multiple monitors being available.
PTB:
>> run SetupPsychtoolbox.m >> screens = Screen('Screens') ans = 0 1 2 %in this case % 0 - the full extended display across the desktop % 1 - screen #1 only % 2 - screen #2 only % because matlab is indexed a 1, you need to select the correct index to get to screen #1 >> screens(2) ans = 1
PsychoPy:
import pyglet display = pyglet.canvas.get_display() screens = display.get_screens() screens >>[Win32Screen(x=0, y=0, width=1920, height=1080), Win32Screen(x=1920, y=0, width=1920, height=1080)] # screens[0] is the first screen # screens[1] is the second screen because python is zero indexed
You need to code your tasks to send to the specific screen you want your subjects to see. If they are viewing the projector, then they can only single a screen at a time. The default is to send the first display to the projector.
One of the best ways to account for a variable to setup in matlab would be to code the task to work with either.
Matlab:
screens=Screen('Screens'); %if there is only 1 entry if (length(screens) == 1) %use it S.screenNumber = min(screens); %but if there are more, use #1 explicitely elseif (length(screens) > 1) S.screenNumber = screens(2); %same as S.screenNumber = 1; end [S.Window, S.screenRect]=Screen('OpenWindow',S.screenNumber, S.screenColor,[],[],2,[],[]);