PDC Startup Example

From VISTA LAB WIKI

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 +
<pre>
% startup on linux: Ochre
% startup on linux: Ochre
%
%
Line 7: Line 8:
isetDir = '/home/wandell/matlab/svn/iset-4.0';
isetDir = '/home/wandell/matlab/svn/iset-4.0';
-
rtbDir = '/usr/share/RenderToolbox';
+
rtbDir = '/usr/share/RenderToolbox';
-
stbDir = '/usr/share/SimToolbox';
+
stbDir = '/usr/share/SimToolbox';
-
ptbDir = '/usr/share/psychtoolbox-3';
+
ptbDir = '/usr/share/psychtoolbox-3';
resp = input('Enter: 1 (ISET-4.0) or 2 (VISTA) or 3 (PDC) 4 (ISET and RenderToolbox) 5 (NONE):');
resp = input('Enter: 1 (ISET-4.0) or 2 (VISTA) or 3 (PDC) 4 (ISET and RenderToolbox) 5 (NONE):');
-
switch resp
+
switch resp
-
    case 4
+
case 4
-
        % Sets up ISET, RenderToolbox, SimToolbox, PsychToolbox and removes
+
% Sets up ISET, RenderToolbox, SimToolbox, PsychToolbox and removes
-
        % SVN directories from the path.
+
% SVN directories from the path.
-
        isetPath(isetDir);
+
isetPath(isetDir);
-
        addpath(genpath(rtbDir));
+
addpath(genpath(rtbDir));
-
        addpath(genpath(stbDir));
+
addpath(genpath(stbDir));
-
        addpath(genpath(ptbDir));
+
addpath(genpath(ptbDir));
-
        path(RemoveSVNPaths);
+
path(RemoveSVNPaths);
-
    case 3
+
case 3
-
        pdcSoftPath;
+
pdcSoftPath;
-
        pdcProjectsPath;
+
pdcProjectsPath;
-
        isetPath;
+
isetPath;
-
       
+
-
    case 2
+
-
        vistaPath;
+
-
        addpath(genpath('/home/brian/matlab/SVN/vistaproj'));
+
-
    case 1
+
case 2
-
        isetPath(isetDir);
+
vistaPath;
-
        chdir(isetDir);
+
addpath(genpath('/home/brian/matlab/SVN/vistaproj'));
-
       
+
 
-
    otherwise
+
case 1
-
        disp('No ISET, or VISTA path set.')
+
isetPath(isetDir);
 +
chdir(isetDir);
 +
 
 +
otherwise
 +
disp('No ISET, or VISTA path set.')
end
end
Line 45: Line 46:
svnRemovePath;
svnRemovePath;
-
clear isetDir  
+
clear isetDir
clear resp
clear resp
 +
 +
</pre>

Latest revision as of 14:30, 10 August 2015

% startup on linux: Ochre
%
% Brian Wandell

restoredefaultpath;
addpath('/home/wandell/matlab/path');

isetDir = '/home/wandell/matlab/svn/iset-4.0';
rtbDir = '/usr/share/RenderToolbox';
stbDir = '/usr/share/SimToolbox';
ptbDir = '/usr/share/psychtoolbox-3';

resp = input('Enter: 1 (ISET-4.0) or 2 (VISTA) or 3 (PDC) 4 (ISET and RenderToolbox) 5 (NONE):');

switch resp

case 4
% Sets up ISET, RenderToolbox, SimToolbox, PsychToolbox and removes
% SVN directories from the path.
isetPath(isetDir);
addpath(genpath(rtbDir));
addpath(genpath(stbDir));
addpath(genpath(ptbDir));
path(RemoveSVNPaths);

case 3
pdcSoftPath;
pdcProjectsPath;
isetPath;

case 2
vistaPath;
addpath(genpath('/home/brian/matlab/SVN/vistaproj'));

case 1
isetPath(isetDir);
chdir(isetDir);

otherwise
disp('No ISET, or VISTA path set.')
end

% Finds the current path and, by default, removes directories starting with
% '.svn'
svnRemovePath;

clear isetDir
clear resp

Personal tools