# Need PTB-2 version

**URL:** <https://psychtoolbox.discourse.group/t/need-ptb-2-version/214>\
**Category:** Uncategorized\
**Created:** [March 14, 2016, 1:46pm UTC](https://psychtoolbox.discourse.group/t/need-ptb-2-version/214 "2016-03-14T13:46:44Z")\
**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:** [March 14, 2016, 1:46pm UTC](https://psychtoolbox.discourse.group/t/need-ptb-2-version/214/1 "2016-03-14T13:46:44Z")

</div>

&nbsp;

Hello everyone

&nbsp;

I have an old PTB-2 code that I would like to run with MATLAB R2014b on a 32-bit Windows XP computer. (It has to be an old PC, because it communicates with a similar PC,m that is not replaceable)

&nbsp;

Code doesn't work in PTB-3 and I have little to non experience in writing codes with PTB, so unfortunedly I can't re-write the parts of the code that is not compatible with PTB-3.

&nbsp;

I've tried using the Screen('Preference','EmulateOldPTB', 1)-command but it still doesn't work.

&nbsp;

Think to easiest (for me) would be if anyone had an old PTB-2 version I could use, so please help if you can :)

&nbsp;

Sincerest,

Adam

&nbsp;

NB! To be exact, the code was written in PTB-2.54 and yes I have tried to google my way out of this and finding a version like this wasn't possible.

---

<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:** [March 14, 2016, 2:23pm UTC](https://psychtoolbox.discourse.group/t/need-ptb-2-version/214/2 "2016-03-14T14:23:07Z")

</div>

[http://bork.hampshire.edu/~alan/vision/matlab\_code/](http://bork.hampshire.edu/~alan/vision/matlab_code/)

> On Mar 14, 2016 6:50 AM, "[adam\_v\_andersen@...](mailto:adam_v_andersen@...) [PSYCHTOOLBOX]" \<[PSYCHTOOLBOX@yahoogroups.com](mailto:PSYCHTOOLBOX@yahoogroups.com)\> wrote:  
> 
> > Hello everyone
> > 
> > I have an old PTB-2 code that I would like to run with MATLAB R2014b on a 32-bit Windows XP computer. (It has to be an old PC, because it communicates with a similar PC,m that is not replaceable)
> > 
> > Code doesn't work in PTB-3 and I have little to non experience in writing codes with PTB, so unfortunedly I can't re-write the parts of the code that is not compatible with PTB-3.
> > 
> > I've tried using the Screen('Preference','EmulateOldPTB', 1)-command but it still doesn't work.
> > 
> > Think to easiest (for me) would be if anyone had an old PTB-2 version I could use, so please help if you can :)
> > 
> > Sincerest,
> > 
> > Adam
> > 
> > NB! To be exact, the code was written in PTB-2.54 and yes I have tried to google my way out of this and finding a version like this wasn't possible.
