-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrackersetup.m
More file actions
51 lines (40 loc) · 1.08 KB
/
trackersetup.m
File metadata and controls
51 lines (40 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
function [ ] = trackersetup( options )
%%TRACKERSETUP Testing eyetracker setup
%% init tracker
dummymode = 0;
smallscreen = 0;
for i=1:length(options)
switch options{i}
case 'dummymodeTracker'
dummymode = 1;
case 'smallscreen'
smallscreen = 1;
case 'smallscreenhome'
smallscreen = 2;
end
end
fprintf('\n\n');
fprintf('Initialising SMI Eyetracker setup test...\n');
bgclr = .5;
nPoint = 9;
if dummymode
[ status, EThndl ] = inittracker( bgclr, nPoint, 'dummy' );
else
[ status, EThndl ] = inittracker( bgclr, nPoint );
end
if status ~= 0; return; end
%% open PTB
if smallscreen == 1
[ PTB ] = openPTB( bgclr, 'smallscreen' );
elseif smallscreen == 2
[ PTB ] = openPTB( bgclr, 'smallscreenhome' );
else
[ PTB ] = openPTB( bgclr );
end
%% Setup
fprintf('\n\n');
fprintf('Running SMI Eyetracker setup test...\n');
EThndl.calibrate(PTB.window, true);
%% Clean
cleanup('ET', EThndl);
end