Error when using Screen on Matlab 7.2.0.232 (R2006a)

Dear all,

I am a new user and currently have a problem on how to use
Psychtoolbox. I have installed PTB3, but every time I try to run the
command 'Screen' on Matlab 7.2, I got the following msg and error:

========

In place of the expected mex file this placeholder file was executed:

Screen

This mex file seems to be missing or inaccessible on your
Matlab/Octave path or it is dysfunctional:

Screen.dll

A reason could be insufficient access permissions or
some missing 3rd party libraries on your system.

On Microsoft Windows with recent Matlab versions (>= V7.4) it could
also be that
the required Visual C++ 2005 runtime libraries are missing on your system.
Visit http://www.mathworks.com/support/solutions/data/1-2223MW.html
for instructions how to
fix this problem. After fixing the problem, retry.

??? Error using ==> AssertMex
Missing or dysfunctional Psychtoolbox Mex file for this operating
system. Read the help text above carefully!!

Error in ==> Screen at 162
AssertMex;
========

Did anybody have the same problem? Any suggestion would be greatly
appreciated!

Thanks,

Meng
So did you follow the displayed suggestions?

a) Do you have a Screen.dll file in the Psychtoolbox folder?
b) Is it on your Matlab path ("which Screen.dll" to check this)?
c) Do you have read and execute permissions to the file?

Does it work after running "SetupPsychtoolbox" - at least
until you restart Matlab?

-mario

--- In psychtoolbox@yahoogroups.com, "liangmeng_qd" <liangmeng_qd@...> wrote:
>
> Dear all,
>
> I am a new user and currently have a problem on how to use
> Psychtoolbox. I have installed PTB3, but every time I try to run the
> command 'Screen' on Matlab 7.2, I got the following msg and error:
>
> ========
>
> In place of the expected mex file this placeholder file was executed:
>
> Screen
>
> This mex file seems to be missing or inaccessible on your
> Matlab/Octave path or it is dysfunctional:
>
> Screen.dll
>
> A reason could be insufficient access permissions or
> some missing 3rd party libraries on your system.
>
> On Microsoft Windows with recent Matlab versions (>= V7.4) it could
> also be that
> the required Visual C++ 2005 runtime libraries are missing on your system.
> Visit http://www.mathworks.com/support/solutions/data/1-2223MW.html
> for instructions how to
> fix this problem. After fixing the problem, retry.
>
> ??? Error using ==> AssertMex
> Missing or dysfunctional Psychtoolbox Mex file for this operating
> system. Read the help text above carefully!!
>
> Error in ==> Screen at 162
> AssertMex;
> ========
>
> Did anybody have the same problem? Any suggestion would be greatly
> appreciated!
>
> Thanks,
>
> Meng
>