Skip to content

Commit a410e6f

Browse files
committed
modify the demo for best practice
1 parent bc5ff23 commit a410e6f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

demos/CPP_waitForTriggerDemo.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
addpath(genpath(fullfile(pwd, '..', 'src')));
1+
% add parent/src directory to the path (to make sure we can access the CPP_PTB functions)
22

3-
%%
4-
cfg.testingDevice = 'mri';
3+
addpath(genpath(fullfile(pwd, '..', 'src')));
54

6-
cfg.mri.triggerNb = 2;
5+
cfg.mri.triggerNb = 5;
76

87
cfg.mri.triggerKey = 't';
98

@@ -17,5 +16,4 @@
1716
% waitForTrigger(cfg, [], quietMode);
1817

1918
%%
20-
nbTriggersToWait = 5;
21-
waitForTrigger(cfg, [], quietMode, nbTriggersToWait);
19+
waitForTrigger(cfg, [], quietMode, cfg.mri.triggerNb);

0 commit comments

Comments
 (0)