File tree Expand file tree Collapse file tree 4 files changed +89
-2
lines changed Expand file tree Collapse file tree 4 files changed +89
-2
lines changed Original file line number Diff line number Diff line change 33[ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square )] ( #contributors- )
44<!-- ALL-CONTRIBUTORS-BADGE:END -->
55
6- List of PsychToolBox (PTB) related functions for the Crossmodal Perpcetion and Plasticity lab (CPP)
6+ This is List of Crossmodal Perpeption and Plasticity lab (CPP) PsychToolBox (PTB) toolbox.
77
8- Most of the functions here are mostly wrappers around some PTB functions to facilitate their use and to have a codebase to facilitate their reuse.
8+ Those functions are mostly wrappers around some PTB functions to facilitate their use and to have a codebase to facilitate their reuse.
9+
10+
11+ ## Requirements
12+
13+ Make sure that the following toolboxes are installed and added to the matlab / octave path.
14+
15+ For instructions see the following links:
16+
17+ | Requirements | Used version |
18+ | ----------------------------------------------------------| --------------|
19+ | [ PsychToolBox] ( http://psychtoolbox.org/ ) Duuuuhh | >3.0.13 |
20+ | [ Matlab] ( https://www.mathworks.com/products/matlab.html ) | 201?? |
21+ | or [ octave] ( https://www.gnu.org/software/octave/ ) | 4.? |
22+
23+ The exact version required for this to work but it is known to work with:
24+ - matlab 2017a or octave 4.2.2 and PTB 3.0.16.
925
1026## Code guidestyle
1127
Original file line number Diff line number Diff line change 1+ function checkDependencies()
2+ % Checks that the right dependencies are installed.
3+
4+ printCredits()
5+
6+
7+ PTB = ' 3.0.16' ;
8+
9+ fprintf(' Checking dependencies\n ' )
10+
11+ % check ptb version
12+ try
13+ a = PsychtoolboxVersion
14+ fprintf(' Using %s %s\n ' , a , b )
15+ if any(~strcmp(a , PTB ))
16+ str = sprintf(' %s %s %s .\n%s ' , ...
17+ ' The current version PTB version is not' , PTB ,...
18+ ' In case of problems (e.g json file related) consider updating.' );
19+ warning(str ); % #ok<*SPWRN>
20+ end
21+ catch
22+ error(' Failed to check the PTB version: Are you sure that PTB is in the matlab path?' )
23+ end
24+
25+
26+ fprintf(' We got all we need. Let'' s get to work.\n ' )
27+
28+ end
Original file line number Diff line number Diff line change 44% We might want to add a couple of IF in case the experiment does not use
55% audio for example.
66
7+ checkDependencies()
78
89
910% For octave: to avoid displaying messenging one screen at a time
Original file line number Diff line number Diff line change 1+ function printCredits()
2+
3+ version = ' 0.0.1' ;
4+
5+ contributors = {...
6+ ' Rémi Gau' , ...
7+ ' Marco Barilari' };
8+
9+ % DOI_URL = 'https://doi.org/10.5281/zenodo.3554331.';
10+
11+ repoURL = ' https://github.com/cpp-lln-lab/CPP_PTB' ;
12+
13+ disp( ' ____________________________________________________________________________________________' );
14+ disp( ' ____________________________________________________________________________________________' );
15+ disp( ' ' );
16+ disp( ' __ ____ ____ ____ _____ _ ' );
17+ disp( ' / _)( _ \( _ \ ( _ \ |_ _| | ) ' );
18+ disp( ' ( (_ )___/ )___/ )___/ | | | \ ' );
19+ disp( ' \__)(__) (__) (__) |_| |__)' );
20+ disp( ' ' );
21+
22+ splash = ' Thank you for using the CPP PTB - version %s . ' ;
23+ fprintf(splash , version )
24+ fprintf(' \n\n ' );
25+
26+ fprintf(' Current list of contributors includes\n ' )
27+ for iCont = 1 : numel(contributors )
28+ fprintf(' %s\n ' , contributors{iCont })
29+ end
30+ fprintf(' \b\n\n ' )
31+
32+ % fprintf('Please cite using the following DOI: \n %s\n\n', DOI_URL)
33+
34+ fprintf(' For bug report, suggestions for improvements or contributions see our github repo: \n %s\n\n ' , repoURL )
35+
36+
37+ disp( ' ____________________________________________________________________________________________' );
38+ disp( ' ____________________________________________________________________________________________' );
39+
40+ fprintf(' \n\n ' )
41+
42+ end
You can’t perform that action at this time.
0 commit comments