# 3.0.10 error Win7 Matlab R2013a - invalid MEX-File error for MatlabWindowsFilesR2007a&#92;Screen.mexw64

**URL:** <https://psychtoolbox.discourse.group/t/3-0-10-error-win7-matlab-r2013a-invalid-mex-file-error-for-matlabwindowsfilesr2007a-92-screen-mexw64/320>\
**Category:** Uncategorized\
**Created:** [June 5, 2013, 12:45am UTC](https://psychtoolbox.discourse.group/t/3-0-10-error-win7-matlab-r2013a-invalid-mex-file-error-for-matlabwindowsfilesr2007a-92-screen-mexw64/320 "2013-06-05T00:45:58Z")\
**Posts on this page:** 3\
**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 5, 2013, 12:45am UTC](https://psychtoolbox.discourse.group/t/3-0-10-error-win7-matlab-r2013a-invalid-mex-file-error-for-matlabwindowsfilesr2007a-92-screen-mexw64/320/1 "2013-06-05T00:45:58Z")

</div>

Hi there,

&nbsp;

I know this question has been asked many times here, but I can’t seem to fix this on my own.

&nbsp;

I can’t get PsychToolbox working on my Windows 7 Machine with Matlab R2013a. When I run AssertOpenGL I get an invalid MEX-File error for MatlabWindowsFilesR2007a\Screen.mexw64.

&nbsp;

I’m running the latest release of PsychToolbox (3.0.10 - Flavor: beta - Corresponds to SVN Revision 3833) in Windows 7 running Matlab R2013a.

&nbsp;

I’ve also installed the supplied vcredist\_x64.exe

&nbsp;

I’ve copied all the errors and versions in detail below.

&nbsp;

Some help would be greatly appreciated!

&nbsp;

Thank you ;)

&nbsp;

Steven.

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

> \>\> AssertOpenGL

&nbsp;

A very simple test call to the Screen() MEX file failed in AssertOpenGL, indicating

that either Screen is totally dysfunctional, or you are trying to run your script on

a system without Psychtoolbox-3 properly installed - or not installed at all.

&nbsp;

This script or function is designated to run only an Psychtoolbox based on OpenGL. Read "help&nbsp; AssertOpenGL" for more info.

&nbsp;

A first more diagnostic test would be to simply type Screen in your Matlab/Octave console and check what its output is.

&nbsp;

The returned error message by Matlab/Octave was:

Last Error: Invalid MEX-file '\\...\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64': The specified module could not be found. (MATLAB:invalidMEXFile)

&nbsp;&nbsp;&nbsp; \\...\PsychOneliners\AssertOpenGL.m,99

&nbsp;

Error using AssertOpenGL (line 174)

Problems detected in call to AssertOpenGL;

&nbsp;

> \>\> Screen

Invalid MEX-file '\\is-fs1a\Users\smanos\Desktop\Psych\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64': The

specified module could not be found.

&nbsp;

&nbsp;

\*\*\* PsychtoolboxVersion \*\*\*

&nbsp;

> \>\> PsychtoolboxVersion

&nbsp;

ans =

&nbsp;

3.0.10 - Flavor: beta - Corresponds to SVN Revision 3833

For more info visit:

[https://github.com/Psychtoolbox-3/Psychtoolbox-3](https://github.com/Psychtoolbox-3/Psychtoolbox-3)

&nbsp;

\*\*\* Windows Version 7 \*\*\*

&nbsp;

C:\Users\smanos\>Ver

&nbsp;

Microsoft Windows [Version 6.1.7601]

&nbsp;

&nbsp;

\*\*\* Matlab Version \*\*\*

&nbsp;

> \>\> version

&nbsp;

ans =

&nbsp;

8.1.0.604 (R2013a)

&nbsp;

---

<div class="post-metadata">

**Author:** ![xrli2002](https://avatars.discourse-cdn.com/v4/letter/x/48db29/32.png) [@xrli2002](https://psychtoolbox.discourse.group/u/xrli2002)\
**Post date:** [June 5, 2013, 2:15am UTC](https://psychtoolbox.discourse.group/t/3-0-10-error-win7-matlab-r2013a-invalid-mex-file-error-for-matlabwindowsfilesr2007a-92-screen-mexw64/320/2 "2013-06-05T02:15:00Z")

</div>

Have you installed GStreamer? -Xiangrui   
  

> --- In [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com), Steven Manos \<smanos@...\> wrote:  
> \>  
> \> Hi there,  
> \>   
> \> I know this question has been asked many times here, but I can't seem to fix this on my own.  
> \>   
> \> I can't get PsychToolbox working on my Windows 7 Machine with Matlab R2013a. When I run AssertOpenGL I get an invalid MEX-File error for MatlabWindowsFilesR2007a\Screen.mexw64.  
> \>   
> \> I'm running the latest release of PsychToolbox (3.0.10 - Flavor: beta - Corresponds to SVN Revision 3833) in Windows 7 running Matlab R2013a.  
> \>   
> \> I've also installed the supplied vcredist\_x64.exe  
> \>   
> \> I've copied all the errors and versions in detail below.  
> \>   
> \> Some help would be greatly appreciated!  
> \>   
> \> Thank you ;)  
> \>   
> \> Steven.  
> \>   
> \>   
> \>   
> \>   
> \>   
> \> \>\> AssertOpenGL  
> \>   
> \> A very simple test call to the Screen() MEX file failed in AssertOpenGL, indicating  
> \> that either Screen is totally dysfunctional, or you are trying to run your script on  
> \> a system without Psychtoolbox-3 properly installed - or not installed at all.  
> \>   
> \> This script or function is designated to run only an Psychtoolbox based on OpenGL. Read "help AssertOpenGL" for more info.  
> \>   
> \> A first more diagnostic test would be to simply type Screen in your Matlab/Octave console and check what its output is.  
> \>   
> \> The returned error message by Matlab/Octave was:  
> \> Last Error: Invalid MEX-file '\\...\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64': The specified module could not be found. (MATLAB:invalidMEXFile)  
> \> \\...\PsychOneliners\AssertOpenGL.m,99  
> \>   
> \> Error using AssertOpenGL (line 174)  
> \> Problems detected in call to AssertOpenGL;  
> \>   
> \> \>\> Screen  
> \> Invalid MEX-file '\\is-fs1a\Users\smanos\Desktop\Psych\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64': The  
> \> specified module could not be found.  
> \>   
> \>   
> \> \*\*\* PsychtoolboxVersion \*\*\*  
> \>   
> \> \>\> PsychtoolboxVersion  
> \>   
> \> ans =  
> \>   
> \> 3.0.10 - Flavor: beta - Corresponds to SVN Revision 3833  
> \> For more info visit:  
> \> [https://github.com/Psychtoolbox-3/Psychtoolbox-3](https://github.com/Psychtoolbox-3/Psychtoolbox-3)  
> \>   
> \> \*\*\* Windows Version 7 \*\*\*  
> \>   
> \> C:\Users\smanos\>Ver  
> \>   
> \> Microsoft Windows [Version 6.1.7601]  
> \>   
> \>   
> \> \*\*\* Matlab Version \*\*\*  
> \>   
> \> \>\> version  
> \>   
> \> ans =  
> \>   
> \> 8.1.0.604 (R2013a)  
> \>

---

<div class="post-metadata">

**Author:** ![xeos](https://avatars.discourse-cdn.com/v4/letter/x/ecae2f/32.png) [@xeos](https://psychtoolbox.discourse.group/u/xeos)\
**Post date:** [June 5, 2013, 3:49am UTC](https://psychtoolbox.discourse.group/t/3-0-10-error-win7-matlab-r2013a-invalid-mex-file-error-for-matlabwindowsfilesr2007a-92-screen-mexw64/320/3 "2013-06-05T03:49:14Z")

</div>

This is just a wild guess, but it might work better if it was installed locally and not on a network share. Can you try putting it on c:\toolbox just for testing purposes?   
  

> On Tue, Jun 4, 2013 at 5:45 PM, Steven Manos \<[smanos@...](mailto:smanos@...)\> wrote:  
> 
> > Hi there,
> > 
> > I know this question has been asked many times here, but I can’t seem to fix this on my own.
> > 
> > I can’t get PsychToolbox working on my Windows 7 Machine with Matlab R2013a. When I run AssertOpenGL I get an invalid MEX-File error for MatlabWindowsFilesR2007a\Screen.mexw64.
> > 
> > I’m running the latest release of PsychToolbox (3.0.10 - Flavor: beta - Corresponds to SVN Revision 3833) in Windows 7 running Matlab R2013a.
> > 
> > I’ve also installed the supplied vcredist\_x64.exe
> > 
> > I’ve copied all the errors and versions in detail below.
> > 
> > Some help would be greatly appreciated!
> > 
> > Thank you ;)
> > 
> > Steven.
> > 
> > \>\> AssertOpenGL
> > 
> > A very simple test call to the Screen() MEX file failed in AssertOpenGL, indicating
> > 
> > that either Screen is totally dysfunctional, or you are trying to run your script on
> > 
> > a system without Psychtoolbox-3 properly installed - or not installed at all.
> > 
> > This script or function is designated to run only an Psychtoolbox based on OpenGL. Read "help AssertOpenGL" for more info.
> > 
> > A first more diagnostic test would be to simply type Screen in your Matlab/Octave console and check what its output is.
> > 
> > The returned error message by Matlab/Octave was:
> > 
> > Last Error: Invalid MEX-file '\\...\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64': The specified module could not be found. (MATLAB:invalidMEXFile)
> > 
> > \\...\PsychOneliners\AssertOpenGL.m,99
> > 
> > Error using AssertOpenGL (line 174)
> > 
> > Problems detected in call to AssertOpenGL;
> > 
> > \>\> Screen
> > 
> > Invalid MEX-file '\\is-fs1a\Users\smanos\Desktop\Psych\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64': The
> > 
> > specified module could not be found.
> > 
> > \*\*\* PsychtoolboxVersion \*\*\*
> > 
> > \>\> PsychtoolboxVersion
> > 
> > ans =
> > 
> > 3.0.10 - Flavor: beta - Corresponds to SVN Revision 3833
> > 
> > For more info visit:
> > 
> > [https://github.com/Psychtoolbox-3/Psychtoolbox-3](https://github.com/Psychtoolbox-3/Psychtoolbox-3)
> > 
> > \*\*\* Windows Version 7 \*\*\*
> > 
> > C:\Users\smanos\>Ver
> > 
> > Microsoft Windows [Version 6.1.7601]
> > 
> > \*\*\* Matlab Version \*\*\*
> > 
> > \>\> version
> > 
> > ans =
> > 
> > 8.1.0.604 (R2013a)
