Skip to content

Commit e6c1ad1

Browse files
committed
add 'end_trial' tag and fix message errors
1 parent bdc3a82 commit e6c1ad1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

visualLocTranslational.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
% For each event in the block
8181
for iEvent = 1:cfg.design.nbEventsPerBlock
8282

83-
eyeTracker('Message', cfg, ['start_trial-', iEvent, '_', thisEvent]);
83+
eyeTracker('Message', cfg, ['start_trial-', num2str(iEvent), '_', thisEvent.trial_type]);
8484

8585
% Check for experiment abortion from operator
8686
checkAbort(cfg, cfg.keyboard.keyboard);
@@ -116,12 +116,12 @@
116116
triggerString = ['trigger_' cfg.design.blockNames{iBlock}];
117117
saveResponsesAndTriggers(responseEvents, cfg, logFile, triggerString);
118118

119+
eyeTracker('Message', cfg, ['end_trial-', num2str(iEvent), '_', thisEvent.trial_type]);
120+
119121
waitFor(cfg, cfg.timing.ISI);
120122

121123
end
122124

123-
eyeTracker('Message', cfg, ['end_trial-', iEvent, '_', thisEvent]);
124-
125125
% "prepare" cross for the baseline block
126126
% if MT / MST this allows us to set the cross at the position of the next block
127127
if iBlock < cfg.design.nbBlocks
@@ -133,6 +133,8 @@
133133
drawFixation(thisFixation);
134134
Screen('Flip', cfg.screen.win);
135135

136+
eyeTracker('Message', cfg, ['end_block-', num2str(iBlock)]);
137+
136138
waitFor(cfg, cfg.timing.IBI);
137139

138140
% trigger monitoring

0 commit comments

Comments
 (0)