|
58 | 58 | if ELinit ~= 0 |
59 | 59 | fprintf('Eyelink is not initialized, aborted.\n'); |
60 | 60 | Eyelink('Shutdown'); |
61 | | - CleanUp() |
| 61 | + CleanUp(); |
62 | 62 | return |
63 | 63 | end |
64 | 64 |
|
|
68 | 68 | if ELconnection ~= 1 |
69 | 69 | fprintf('Eyelink is not connected, aborted.\n'); |
70 | 70 | Eyelink('Shutdown'); |
71 | | - CleanUp() |
| 71 | + CleanUp(); |
72 | 72 | return |
73 | 73 | end |
74 | 74 |
|
75 | 75 | % Last check that the EL is up to work and exit program if this fails. |
76 | 76 | if ~EyelinkInit(0, 1) |
77 | 77 | fprintf('Eyelink Init aborted.\n'); |
78 | | - CleanUp() |
| 78 | + CleanUp(); |
79 | 79 | return |
80 | 80 | end |
81 | 81 |
|
|
117 | 117 |
|
118 | 118 | % [width, height]=Screen('WindowSize', screenNumber); |
119 | 119 |
|
120 | | - Eyelink('command','calibration_samples = 6'); |
121 | | - Eyelink('command','calibration_sequence = 0,1,2,3,4,5'); |
122 | | - Eyelink('command','calibration_targets = %d,%d %d,%d %d,%d %d,%d %d,%d',... |
123 | | - 640,512, ... %width/2,height/2 |
124 | | - 640,102, ... %width/2,height*0.1 |
125 | | - 640,614, ... %width/2,height*0.6 |
126 | | - 128,341, ... %width*0.1,height*1/3 |
127 | | - 1152,341 ); %width-width*0.1,height*1/3 |
| 120 | + Eyelink('command', 'calibration_samples = 6'); |
| 121 | + Eyelink('command', 'calibration_sequence = 0,1,2,3,4,5'); |
| 122 | + Eyelink('command', 'calibration_targets = %d,%d %d,%d %d,%d %d,%d %d,%d', ... |
| 123 | + 640, 512, ... % width/2,height/2 |
| 124 | + 640, 102, ... % width/2,height*0.1 |
| 125 | + 640, 614, ... % width/2,height*0.6 |
| 126 | + 128, 341, ... % width*0.1,height*1/3 |
| 127 | + 1152, 341); % width-width*0.1,height*1/3 |
128 | 128 |
|
129 | 129 | % Validation target locations |
130 | | - Eyelink('command','validation_samples = 5'); |
131 | | - Eyelink('command','validation_sequence = 0,1,2,3,4,5'); |
132 | | - Eyelink('command','validation_targets = %d,%d %d,%d %d,%d %d,%d %d,%d',... |
133 | | - 640,512, ... %width/2,height/2 |
134 | | - 640,102, ... %width/2,height*0.1 |
135 | | - 640,614, ... %width/2,height*0.6 |
136 | | - 128,341, ... %width*0.1,height*1/3 |
137 | | - 1152,341 ); %width-width*0.1,height*1/3 |
| 130 | + Eyelink('command', 'validation_samples = 5'); |
| 131 | + Eyelink('command', 'validation_sequence = 0,1,2,3,4,5'); |
| 132 | + Eyelink('command', 'validation_targets = %d,%d %d,%d %d,%d %d,%d %d,%d', ... |
| 133 | + 640, 512, ... % width/2,height/2 |
| 134 | + 640, 102, ... % width/2,height*0.1 |
| 135 | + 640, 614, ... % width/2,height*0.6 |
| 136 | + 128, 341, ... % width*0.1,height*1/3 |
| 137 | + 1152, 341); % width-width*0.1,height*1/3 |
138 | 138 |
|
139 | 139 | end |
140 | 140 |
|
|
0 commit comments