# Stuck on &quot;Welcome to Psychtoolbox&quot; screen.

**URL:** <https://psychtoolbox.discourse.group/t/stuck-on-quot-welcome-to-psychtoolbox-quot-screen/538>\
**Category:** Uncategorized\
**Created:** [May 15, 2017, 4:18pm UTC](https://psychtoolbox.discourse.group/t/stuck-on-quot-welcome-to-psychtoolbox-quot-screen/538 "2017-05-15T16:18:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [May 15, 2017, 4:18pm UTC](https://psychtoolbox.discourse.group/t/stuck-on-quot-welcome-to-psychtoolbox-quot-screen/538/1 "2017-05-15T16:18:19Z")

</div>

Hello,

We have implemented a generic experiment infrastructure. This was done to simplify the development process. The infrastructure was working well, even with our eye-tracking tool. However, we recently needed to display a 120 Hz refresh-rate stimuli, so we updated our graphics card. Since than, Psychtoolbox gets stuck on the Screen('OpenWindow')'s opening display (see attached image). It does not happen every n-th time, nor does it happen every time I interrupted the previous run via keyboard (with Ctrl+C).&nbsp;

I am a psychology student with 5 year experience as a programmer. English is not my native language, so I'm sorry for any grammatical mistakes and for not finding a good synonym for the word "stuck".

Thank you very much,

Shachaf

Specifications:

OS: Windows 7 Enterprise, Service Pack 1

old graphics card: Nvidia quadro k620

new graphics card: Nvidia GT730 2GB

Psychtoolbox version: 3.0.13, beta

Attachments:

testing\_graphics\_card.png - image of the stuck-ed screen

Envieonment.m - The environment module in our infrastructure. This is where we call Screen('OpenWindow') among other functionalities.

And the code with which we open a window:

%% opening a window

&nbsp; &nbsp; &nbsp; &nbsp; function open\_window(obj, width, height)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if nargin \< 3

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height = obj.HEIGHT;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if nargin \< 2

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width = obj.WIDTH;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width = obj.convert\_cm\_to\_pixels(width);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height = obj.convert\_cm\_to\_pixels(height);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; screens=Screen('Screens');

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; screenNumber=max(screens);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [obj.window, obj.rectangular\_size] = Screen('OpenWindow', screenNumber, 0, [0, 0, width, height]);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; obj.is\_window\_open = 1;

&nbsp; &nbsp; &nbsp; &nbsp; end
