Skip to content

Commit 0e487ed

Browse files
authored
Merge pull request #27 from Remi-Gau/master
update README
2 parents 2e4b20a + 426cde0 commit 0e487ed

File tree

5 files changed

+29
-9
lines changed

5 files changed

+29
-9
lines changed

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,31 @@ Any details of the experiment can be changed in `setParameters.m` (e.g., experim
7575
- Task(s)
7676
- Instructions
7777
- Task #1 parameters
78+
79+
#### Let the scanner pace the experiment
80+
81+
Set `cfg.pacedByTriggers.do` to `true` and you can then set all the details in this `if` block
82+
83+
```matlab
84+
% Time is here in in terms of number repetition time (i.e MRI volumes)
85+
if cfg.pacedByTriggers.do
86+
87+
cfg.pacedByTriggers.quietMode = true;
88+
cfg.pacedByTriggers.nbTriggers = 1;
89+
90+
cfg.timing.eventDuration = cfg.mri.repetitionTime / 2 - 0.04; % second
91+
92+
% Time between blocs in secs
93+
cfg.timing.IBI = 0;
94+
% Time between events in secs
95+
cfg.timing.ISI = 0;
96+
% Number of seconds before the motion stimuli are presented
97+
cfg.timing.onsetDelay = 0;
98+
% Number of seconds after the end all the stimuli before ending the run
99+
cfg.timing.endDelay = 2;
100+
101+
end
102+
```
78103

79104
### 3.3. <a name='subfunexpDesign'></a>subfun/expDesign
80105

@@ -103,10 +128,4 @@ The `numEventsPerBlock` should be a multiple of the number of "base" listed in t
103128
- `expParameters.designSpeeds` is an array `(nr_blocks, numEventsPerBlock) * speedEvent`
104129
- `expParameters.designFixationTargets` is an array `(nr_blocks, numEventsPerBlock)` showing for each event if it should be accompanied by a target
105130

106-
### 3.4. <a name='subfuneyeTracker'></a>subfun/eyeTracker
107-
108-
Eyetracker script, still to be debugged. Will probably moved in the CPP_PTB package. It deals with the calibration (dufault or custom), eye movements recording and saving the files.
109-
110-
### 3.5. <a name='subfunwait4Trigger'></a>subfun/wait4Trigger
111131

112-
Simple functions that counts the triggers sent by the MRI computer to the stimulation computer to sync brain volume recordings and stimulation.

lib/CPP_BIDS

lib/CPP_PTB

setParameters.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
% Number of seconds after the end all the stimuli before ending the run
6767
cfg.timing.endDelay = 3.6;
6868

69-
% reexpress those in terms of repetition time
69+
% reexpress those in terms of number repetition time
7070
if cfg.pacedByTriggers.do
7171

7272
cfg.pacedByTriggers.quietMode = true;

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v0.0.1

0 commit comments

Comments
 (0)