Skip to content

Commit 9d99a1b

Browse files
committed
force drawing fixation cross for baseline
1 parent 4bbb574 commit 9d99a1b

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

setParameters.m

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,19 @@
7171
cfg.timing.onsetDelay = 0;
7272
% Number of seconds after the end all the stimuli before ending the run
7373
cfg.timing.endDelay = 3.6;
74-
74+
75+
if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST')
76+
cfg.timing.IBI = 3.6;
77+
end
78+
7579
% reexpress those in terms of repetition time
7680
if cfg.pacedByTriggers.do
77-
81+
7882
cfg.pacedByTriggers.quietMode = true;
7983
cfg.pacedByTriggers.nbTriggers = 1;
80-
84+
8185
cfg.timing.eventDuration = cfg.mri.repetitionTime / 2 - 0.04; % second
82-
86+
8387
% Time between blocs in secs
8488
cfg.timing.IBI = 0;
8589
% Time between events in secs
@@ -88,10 +92,15 @@
8892
cfg.timing.onsetDelay = 0;
8993
% Number of seconds after the end all the stimuli before ending the run
9094
cfg.timing.endDelay = 2;
95+
96+
if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST')
97+
cfg.timing.IBI = 2;
98+
end
99+
91100
end
92-
101+
93102
%% Visual Stimulation
94-
103+
95104
% Speed in visual angles / second
96105
cfg.dot.speed = 15;
97106
% Coherence Level (0-1)

visualLocTranslational.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@
113113
end
114114

115115
eyeTracker('StopRecordings', cfg);
116+
117+
% "prepare" cross for the baseline block
118+
% if MT / MST this allows us to set the cross at the position of the next block
119+
if iBlock < cfg.design.nbBlocks
120+
nextBlock = iBlock+1;
121+
else
122+
nextBlock = cfg.design.nbBlocks;
123+
end
124+
[~, thisFixation] = preTrialSetup(cfg, nextBlock, 1);
125+
drawFixation(thisFixation);
126+
Screen('Flip', cfg.screen.win);
116127

117128
waitFor(cfg, cfg.timing.IBI);
118129

0 commit comments

Comments
 (0)