|
64 | 64 | % Get EyeLink setup information. |
65 | 65 | [el.v, el.vs] = Eyelink('GetTrackerVersion'); |
66 | 66 | fprintf('Running experiment on a ''%s'' tracker.\n', el.vs); |
67 | | - |
| 67 | + |
68 | 68 | % Save EL setup version in cfg |
69 | 69 | cfg.eyeTracker.eyeLinkVersionString = el.vs; |
70 | 70 |
|
|
81 | 81 | Eyelink('Message', 'DISPLAY_COORDS %ld %ld %ld %ld', 0, 0, 0, 0); |
82 | 82 |
|
83 | 83 | % Set calibration type. |
84 | | - Eyelink('Command', 'calibration_type = HV5'); |
85 | | - |
| 84 | + Eyelink('Command', 'calibration_type = HV5'); |
| 85 | + |
86 | 86 | if cfg.eyeTracker.defaultCalibration |
87 | 87 |
|
88 | 88 | % Set default calibration parameters. |
|
122 | 122 | % Set EDF file contents (not clear what this lines are used for). |
123 | 123 | el.vsn = regexp(el.vs, '\d', 'match'); % won't work on EL |
124 | 124 |
|
125 | | - fprintf('Waiting for calibration \n') |
126 | | - |
| 125 | + fprintf('Waiting for calibration \n'); |
| 126 | + |
127 | 127 | % Enter Eyetracker camera setup mode, calibration and validation. |
128 | 128 | EyelinkDoTrackerSetup(el); |
129 | 129 |
|
|
228 | 228 | % Exit program if this fails. |
229 | 229 | elInit = Eyelink('Initialize'); |
230 | 230 | if elInit ~= 0 |
231 | | - error([newline 'Eyelink is not initialized, aborted.']); |
| 231 | + error([newline 'Eyelink is not initialized, aborted.']); |
232 | 232 | end |
233 | 233 |
|
234 | 234 | % Make sure EL is still connected: returns 1 if connected, -1 if dummy-connected, |
235 | 235 | % 2 if broadcast-connected and 0 if not connected. Exit program if this fails. |
236 | 236 | elConnection = Eyelink('IsConnected'); |
237 | 237 | if elConnection ~= 1 |
238 | | - error([newline 'Eyelink is not connected, aborted.']); |
| 238 | + error([newline 'Eyelink is not connected, aborted.']); |
239 | 239 | end |
240 | | - |
| 240 | + |
241 | 241 | % Initialize Eyelink system and connection: returns 1 when succesful, 0 |
242 | 242 | % otherwise |
243 | 243 | if ~EyelinkInit(0, 1) |
|
247 | 247 |
|
248 | 248 | end |
249 | 249 |
|
250 | | - |
251 | 250 | %% subfunctions for iView |
252 | 251 |
|
253 | 252 | % function ivx = eyeTrackInit(cfg) |
|
0 commit comments