|
72 | 72 | % SET UP TRACKER CONFIGURATION |
73 | 73 | % Setting the proper recording resolution, proper calibration type, |
74 | 74 | % as well as the data file content; |
75 | | - % Eyelink('command', 'add_file_preamble_text ''Recorded by EyelinkToolbox demo-experiment'''); |
| 75 | + % Eyelink('command', 'add_file_preamble_text ''Recorded by |
| 76 | + %EyelinkToolbox demo-experiment'''); |
76 | 77 |
|
77 | 78 | % This command is crucial to map the gaze positions from the tracker to |
78 | 79 | % screen pixel positions to determine fixation |
|
89 | 90 | Eyelink('command', 'generate_default_targets = YES'); |
90 | 91 | % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
91 | 92 |
|
92 | | - % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 93 | + % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
93 | 94 | % % CUSTOM CALIBRATION |
94 | 95 | % % (SET MANUALLY THE DOTS COORDINATES, HERE FOR 6 DOTS) |
95 | 96 | % Eyelink('command', 'calibration_type = HV5'); |
|
101 | 102 | % [width, height]=Screen('WindowSize', screenNumber); |
102 | 103 | % Eyelink('command','calibration_samples = 6'); |
103 | 104 | % Eyelink('command','calibration_sequence = 0,1,2,3,4,5'); |
104 | | - % Eyelink('command','calibration_targets = %d,%d %d,%d %d,%d %d,%d %d,%d',... |
| 105 | + % Eyelink('command','calibration_targets = ... |
| 106 | + % %d,%d %d,%d %d,%d %d,%d %d,%d',... |
105 | 107 | % 640,512, ... %width/2,height/2 |
106 | 108 | % 640,102, ... %width/2,height*0.1 |
107 | 109 | % 640,614, ... %width/2,height*0.6 |
|
110 | 112 | % |
111 | 113 | % Eyelink('command','validation_samples = 5'); |
112 | 114 | % Eyelink('command','validation_sequence = 0,1,2,3,4,5'); |
113 | | - % Eyelink('command','validation_targets = %d,%d %d,%d %d,%d %d,%d %d,%d',... |
| 115 | + % Eyelink('command','validation_targets = ... |
| 116 | + % %d,%d %d,%d %d,%d %d,%d %d,%d',... |
114 | 117 | % 640,512, ... %width/2,height/2 |
115 | 118 | % 640,102, ... %width/2,height*0.1 |
116 | 119 | % 640,614, ... %width/2,height*0.6 |
117 | 120 | % 128,341, ... %width*0.1,height*1/3 |
118 | 121 | % 1152,341 ); %width-width*0.1,height*1/3 |
119 | | - % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
| 122 | + % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % |
120 | 123 |
|
121 | 124 | % % set parser (conservative saccade thresholds) |
122 | 125 | % Eyelink('command', 'saccade_velocity_threshold = 35'); |
|
199 | 202 | % download data file |
200 | 203 | try |
201 | 204 | fprintf('Receiving data file ''%s''\n', edfFileName); |
202 | | - status = Eyelink('ReceiveFile', '', [expParameters.outputDir, filesep, 'eyetracker', filesep, edfFileName]); |
| 205 | + status = Eyelink('ReceiveFile', '', ... |
| 206 | + [expParameters.outputDir, filesep, 'eyetracker', filesep, edfFileName]); |
203 | 207 | if status > 0 |
204 | 208 | fprintf('ReceiveFile status %d\n', status); |
205 | 209 | end |
206 | | - if 2 == exist([expParameters.outputDir, filesep, 'eyetracker', filesep, edfFileName], 'file') |
207 | | - fprintf('Data file ''%s'' can be found in ''%s''\n', edfFileName, [expParameters.outputDir, filesep, 'eyetracker', filesep]); |
| 210 | + if 2 == exist([expParameters.outputDir, filesep, 'eyetracker', ... |
| 211 | + filesep, edfFileName], 'file') |
| 212 | + fprintf('Data file ''%s'' can be found in ''%s''\n', edfFileName, ... |
| 213 | + [expParameters.outputDir, filesep, 'eyetracker', filesep]); |
208 | 214 | end |
209 | 215 | catch |
210 | 216 | fprintf('Problem receiving data file ''%s''\n', edfFileName); |
|
0 commit comments