# \[Psychtoolbox v2.50\]: ScreenTest error

**URL:** <https://psychtoolbox.discourse.group/t/psychtoolbox-v2-50-screentest-error/1410>\
**Category:** Uncategorized\
**Created:** [June 27, 2002, 5:09pm UTC](https://psychtoolbox.discourse.group/t/psychtoolbox-v2-50-screentest-error/1410 "2002-06-27T17:09:08Z")\
**Posts on this page:** 2\
**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:** [June 27, 2002, 5:09pm UTC](https://psychtoolbox.discourse.group/t/psychtoolbox-v2-50-screentest-error/1410/1 "2002-06-27T17:09:08Z")

</div>

I traced the error to line 55 in the DescribeScreen routine where Framerate  
is called.   
  
Screen test was run in Classic (9.2.2) - don't know why the DescribeComputer  
routine reports Mac OS 9.2 - with Mac OS X 10.1.5.  
  
------  
  
ScreenTest  
\*\*\* Chris Chase's Classic Mac OS Compatibility/499, Mac OS 9.2 \*\*\*\*\*\*\*\*\*\*\*  
G3, 500 MHz, memory bus 67 MHz, 8.961 Mflop/s  
Psychtoolbox 2.5, 25 June 2002, Matlab 5.2.1.1421  
\*\*\* Screen 0 \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
??? Chase:Applications (Mac OS  
9):MatLab:Toolbox:exptTools:screenTools:openScreen.m: Can't open file.  
  
??? Reference to non-existent field 'res'.  
  
Error in ==\> Chase:Applications (Mac OS  
9):MatLab:Toolbox:Psychtoolbox:PsychBasic:CloseScreen.m  
On line 39 ==\> if res.mode ~= screenGlobal(screenNumber+1).res.mode  
  
  
Warning: Ignoring error 1 in attempt to run "CloseScreen.m".  
??? Error 1 in attempt to run "OpenScreen.m".  
  
Error in ==\> Chase:Applications (Mac OS  
9):MatLab:Toolbox:Psychtoolbox:PsychBasic:SCREEN.mex  
Error in ==\> Chase:Applications (Mac OS  
9):MatLab:Toolbox:Psychtoolbox:PsychOneliners:DescribeScreen.m  
On line 58 ==\>   
[card,driver,driverVersion,slotName]=SCREEN(screenNumber,'VideoCard');  
  
Error in ==\> Chase:Applications (Mac OS  
9):MatLab:Toolbox:Psychtoolbox:PsychTests:ScreenTest.m  
On line 431 ==\> DescribeScreen(screenNumber);  
  
Error in ==\> Chase:Applications (Mac OS  
9):MatLab:Toolbox:Psychtoolbox:PsychTests:ScreenTest.m  
On line 422 ==\> ScreenTest(screenNumber);  
  
  
---------   
Chris Chase, Ph.D.  
Associate Professor of Psychology  
Claremont McKenna College  
850 Columbia Ave.  
Claremont, CA 91711  
  
[chris.chase@...](mailto:chris.chase@...)  
909-607-3668

---

<div class="post-metadata">

**Author:** ![denispelli](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@denispelli](https://psychtoolbox.discourse.group/u/denispelli)\
**Post date:** [June 27, 2002, 8:11pm UTC](https://psychtoolbox.discourse.group/t/psychtoolbox-v2-50-screentest-error/1410/2 "2002-06-27T20:11:00Z")

</div>

> \>I traced the error to line 55 in the DescribeScreen routine where Framerate  
> \>is called.   
> \>  
> \>Screen test was run in Classic (9.2.2) - don't know why the DescribeComputer  
> \>routine reports Mac OS 9.2 - with Mac OS X 10.1.5.  
> \>  
> \>------  
> \>  
> \>ScreenTest  
> \>\*\*\* Chris Chase's Classic Mac OS Compatibility/499, Mac OS 9.2 \*\*\*\*\*\*\*\*\*\*\*  
> \>G3, 500 MHz, memory bus 67 MHz, 8.961 Mflop/s  
> \>Psychtoolbox 2.5, 25 June 2002, Matlab 5.2.1.1421  
> \>\*\*\* Screen 0 \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> \>??? Chase:Applications (Mac OS  
> \>9):MatLab:Toolbox:exptTools:screenTools:openScreen.m: Can't open file.  
> \>  
> \>??? Reference to non-existent field 'res'.  
> \>  
> \>Error in ==\> Chase:Applications (Mac OS  
> \>9):MatLab:Toolbox:Psychtoolbox:PsychBasic:CloseScreen.m  
> \>On line 39 ==\> if res.mode ~= screenGlobal(screenNumber+1).res.mode  
> \>  
> \>  
> \>Warning: Ignoring error 1 in attempt to run "CloseScreen.m".  
> \>??? Error 1 in attempt to run "OpenScreen.m".  
> \>  
> \>Error in ==\> Chase:Applications (Mac OS  
> \>9):MatLab:Toolbox:Psychtoolbox:PsychBasic:SCREEN.mex  
> \>Error in ==\> Chase:Applications (Mac OS  
> \>9):MatLab:Toolbox:Psychtoolbox:PsychOneliners:DescribeScreen.m  
> \>On line 58 ==\>   
> \>[card,driver,driverVersion,slotName]=SCREEN(screenNumber,'VideoCard');  
> \>  
> \>Error in ==\> Chase:Applications (Mac OS  
> \>9):MatLab:Toolbox:Psychtoolbox:PsychTests:ScreenTest.m  
> \>On line 431 ==\> DescribeScreen(screenNumber);  
> \>  
> \>Error in ==\> Chase:Applications (Mac OS  
> \>9):MatLab:Toolbox:Psychtoolbox:PsychTests:ScreenTest.m  
> \>On line 422 ==\> ScreenTest(screenNumber);  
> \>  
> \>  
> \>---------  
> \>Chris Chase, Ph.D.  
> \>Associate Professor of Psychology  
> \>Claremont McKenna College  
> \>850 Columbia Ave.  
> \>Claremont, CA 91711  
> \>  
> \>[chris.chase@...](mailto:chris.chase@...)  
> \>909-607-3668  
> \>

dear chris  
  
thanks for the report. there are TWO problems here:  
  
1. is a name conflict. The PsychToolbox has a new file called   
OpenScreen.m that resides in PsychBasic. However, you have your own   
file with essentially the same name:  
Chase:Applications (Mac OS 9):MatLab:Toolbox:exptTools:screenTools:openScreen.m  
  
because of this conflict, you never ran the Psychtoolbox OpenScreen.m  
  
2. CloseScreen.m is meant to cope with the situation of being run   
despite OpenScreen.m not having been run, and it apparently is   
assuming the screenGlobal.res exists, when it doesn't. We'll fix that   
immediately.  
  
Are the "expTools" yours? Can your "openScreen.m" be renamed? (MATLAB   
usually ignores upper/lowercase distinctions)  
  

> \>Screen test was run in Classic (9.2.2) - don't know why the DescribeComputer  
> \>routine reports Mac OS 9.2 - with Mac OS X 10.1.5.

surprises me too, but that's harmless.  
  
best  
  
denis
