Skip to content

Commit fa14092

Browse files
committed
add start and end tag at the block level
1 parent 2304925 commit fa14092

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

visualLocTranslational.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
waitForTrigger(cfg);
6161

6262
%% Experiment Start
63+
64+
eyeTracker('StartRecording', cfg);
65+
6366
cfg = getExperimentStart(cfg);
6467

6568
getResponse('start', cfg.keyboard.responseBox);
@@ -72,7 +75,7 @@
7275

7376
fprintf('\n - Running Block %.0f \n', iBlock);
7477

75-
eyeTracker('StartRecording', cfg);
78+
eyeTracker('Message', cfg, ['start_block-', iBlock]);
7679

7780
% For each event in the block
7881
for iEvent = 1:cfg.design.nbEventsPerBlock
@@ -115,7 +118,7 @@
115118

116119
end
117120

118-
eyeTracker('StopRecordings', cfg);
121+
eyeTracker('Message', cfg, ['end_block-', iBlock]);
119122

120123
% "prepare" cross for the baseline block
121124
% if MT / MST this allows us to set the cross at the position of the next block
@@ -144,6 +147,8 @@
144147

145148
cfg = getExperimentEnd(cfg);
146149

150+
eyeTracker('StopRecordings', cfg);
151+
147152
% Close the logfiles
148153
saveEventsFile('close', cfg, logFile);
149154

0 commit comments

Comments
 (0)