Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions setParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
% block length = (cfg.eventDuration + cfg.ISI) * cfg.design.nbEventsPerBlock

% Time between blocs in secs
cfg.IBI = 1.8 * 3; % 8;
cfg.timing.IBI = 1.8 * 3; % 8;
% Time between events in secs
cfg.ISI = 0.1;
cfg.timing.ISI = 0.1;
% Number of seconds before the motion stimuli are presented
cfg.onsetDelay = .1;
cfg.timing.onsetDelay = .1;
% Number of seconds after the end all the stimuli before ending the run
cfg.endDelay = .1;
cfg.timing.endDelay = .1;

cfg.eventDuration = 0.8; % second
cfg.timing.eventDuration = 0.8; % second

%% Visual Stimulation

Expand Down
2 changes: 1 addition & 1 deletion subfun/doDotMo.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
dots = initDots(cfg, thisEvent);

% Set for how many frames this event will last
framesLeft = floor(cfg.eventDuration / cfg.screen.ifi);
framesLeft = floor(cfg.timing.eventDuration / cfg.screen.ifi);

%% Start the dots presentation
vbl = Screen('Flip', cfg.screen.win);
Expand Down
9 changes: 5 additions & 4 deletions visualLocTanslational.m → visualLocTranslational.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

disp(cfg);

% Show experiment instruction
standByScreen(cfg);

% prepare the KbQueue to collect responses
Expand All @@ -76,7 +77,7 @@

getResponse('start', cfg.keyboard.responseBox);

WaitSecs(cfg.onsetDelay);
WaitSecs(cfg.timing.onsetDelay);

%% For Each Block

Expand Down Expand Up @@ -125,13 +126,13 @@
saveResponsesAndTriggers(responseEvents, cfg, logFile, triggerString);

% wait for the inter-stimulus interval
WaitSecs(cfg.ISI);
WaitSecs(cfg.timing.ISI);

end

eyeTracker('StopRecordings', cfg);

WaitSecs(cfg.IBI);
WaitSecs(cfg.timing.IBI);

% trigger monitoring
triggerEvents = getResponse('check', cfg.keyboard.responseBox, cfg, ...
Expand All @@ -143,7 +144,7 @@
end

% End of the run for the BOLD to go down
WaitSecs(cfg.endDelay);
WaitSecs(cfg.timing.endDelay);

cfg = getExperimentEnd(cfg);

Expand Down