Skip to content

Commit a4dd824

Browse files
committed
make trigger name in log more explicit
1 parent ecd99ad commit a4dd824

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

visualLocTanslational.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@
6767

6868
% prepare the KbQueue to collect responses
6969
getResponse('init', cfg.keyboard.responseBox, cfg);
70-
getResponse('start', cfg.keyboard.responseBox);
7170

7271
% Wait for Trigger from Scanner
7372
waitForTrigger(cfg);
7473

7574
%% Experiment Start
7675
cfg = getExperimentStart(cfg);
76+
77+
getResponse('start', cfg.keyboard.responseBox);
7778

7879
WaitSecs(cfg.onsetDelay);
7980

@@ -131,7 +132,8 @@
131132
responseEvents(iResp).speed = 'n/a';
132133
responseEvents(iResp).target = 'n/a';
133134
if strcmp(responseEvents(iResp).keyName, 't')
134-
responseEvents(iResp).trial_type = 'trigger';
135+
responseEvents(iResp).trial_type = ...
136+
['trigger_' cfg.design.blockNames{iBlock}];
135137
end
136138
end
137139

@@ -165,7 +167,7 @@
165167
triggerEvents(iResp).speed = 'n/a';
166168
triggerEvents(iResp).target = 'n/a';
167169
if strcmp(triggerEvents(iResp).keyName, 't')
168-
triggerEvents(iResp).trial_type = 'trigger-baseline';
170+
triggerEvents(iResp).trial_type = 'trigger_baseline';
169171
end
170172
end
171173

0 commit comments

Comments
 (0)