Skip to content

Commit ec9bd2c

Browse files
committed
fix a tiny "bug" on collect and save responses
1 parent 0d60ba6 commit ec9bd2c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

collectAndSaveResponses.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
responseEvents(iResp).onset - experimentStart;
1010
end
1111

12-
responseEvents.fileID = logFile.fileID;
13-
responseEvents.extraColumns = logFile.extraColumns;
12+
responseEvents(1).fileID = logFile.fileID;
13+
responseEvents(1).extraColumns = logFile.extraColumns;
1414
saveEventsFile('save', cfg, responseEvents);
1515

1616
end

getExperimentStart.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
function cfg = getExperimentStart(cfg)
2-
% Show the fixation cross
2+
% cfg = getExperimentStart(cfg)
3+
%
4+
% Stores the onset time in cfg.experimentStart
5+
36
drawFixation(cfg);
47
vbl = Screen('Flip', cfg.screen.win);
58
cfg.experimentStart = vbl;
9+
610
end

0 commit comments

Comments
 (0)