How to support 2 different PTB versions on same Mac?

Hi,

I need to maintain support for PTB 3.0.9 (svn 2178) and MATLAB_R2010a (32-bit), because I need to support code for experiments running in other labs with this setup.

But at the same time, I need to upgrade to the latest PTB (latest stable release) and MATLAB_R2012b (64-bit).

I am using an iMac, Mac OSX 10.6.8, and I can have 2 different versions of Matlab with no problems.

But I don't know how to set up PTB because, by default, it lives in /Applications/Psychtoolbox (with no version numbers).
Consequently, upgrading PTB will clobber my previous version 3.0.9

I am sure other people have solved this problem before.

Any help would be appreciated.

-- David Jones
--- In psychtoolbox@yahoogroups.com, "dxjonespix" wrote:
>
> Hi,
>
> I need to maintain support for PTB 3.0.9 (svn 2178) and MATLAB_R2010a (32-bit), because I need to support code for experiments running in other labs with this setup.
>
> But at the same time, I need to upgrade to the latest PTB (latest stable release) and MATLAB_R2012b (64-bit).
>
> I am using an iMac, Mac OSX 10.6.8, and I can have 2 different versions of Matlab with no problems.
>
> But I don't know how to set up PTB because, by default, it lives in /Applications/Psychtoolbox (with no version numbers).
> Consequently, upgrading PTB will clobber my previous version 3.0.9
>

You can define the installation folder during DownloadPsychtoolbox() - there's no reason whatsoever it needs to go to /Applications/, it is just a reasonable default.

Then you need to have two separate Matlab M-File path definition files for your different Matlab's - the Matlab manual explains how to define these if it doesn't happen already automatically for separate Matlab installations.

-mario

> I am sure other people have solved this problem before.
>
> Any help would be appreciated.
>
> -- David Jones
>