diff --git a/README.md b/README.md index cd21372..829ce1b 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,31 @@ Any details of the experiment can be changed in `setParameters.m` (e.g., experim - Task(s) - Instructions - Task #1 parameters + +#### Let the scanner pace the experiment + +Set `cfg.pacedByTriggers.do` to `true` and you can then set all the details in this `if` block + +```matlab +% Time is here in in terms of number repetition time (i.e MRI volumes) +if cfg.pacedByTriggers.do + + cfg.pacedByTriggers.quietMode = true; + cfg.pacedByTriggers.nbTriggers = 1; + + cfg.timing.eventDuration = cfg.mri.repetitionTime / 2 - 0.04; % second + + % Time between blocs in secs + cfg.timing.IBI = 0; + % Time between events in secs + cfg.timing.ISI = 0; + % Number of seconds before the motion stimuli are presented + cfg.timing.onsetDelay = 0; + % Number of seconds after the end all the stimuli before ending the run + cfg.timing.endDelay = 2; + +end +``` ### 3.3. subfun/expDesign @@ -103,10 +128,4 @@ The `numEventsPerBlock` should be a multiple of the number of "base" listed in t - `expParameters.designSpeeds` is an array `(nr_blocks, numEventsPerBlock) * speedEvent` - `expParameters.designFixationTargets` is an array `(nr_blocks, numEventsPerBlock)` showing for each event if it should be accompanied by a target -### 3.4. subfun/eyeTracker - -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. - -### 3.5. subfun/wait4Trigger -Simple functions that counts the triggers sent by the MRI computer to the stimulation computer to sync brain volume recordings and stimulation. diff --git a/lib/CPP_BIDS b/lib/CPP_BIDS index 962c947..c6659f7 160000 --- a/lib/CPP_BIDS +++ b/lib/CPP_BIDS @@ -1 +1 @@ -Subproject commit 962c947fe38094da9561eeba5daa44993505f2c0 +Subproject commit c6659f74e995ab870336bc266fe849c554a9f044 diff --git a/lib/CPP_PTB b/lib/CPP_PTB index cf1d8d2..179cc21 160000 --- a/lib/CPP_PTB +++ b/lib/CPP_PTB @@ -1 +1 @@ -Subproject commit cf1d8d2740cfe668f994ed0ad9664bb905ca9c2e +Subproject commit 179cc21c759f382891c2611e41a6d38e4c876bab diff --git a/setParameters.m b/setParameters.m index 74595f1..3ef43c7 100644 --- a/setParameters.m +++ b/setParameters.m @@ -66,7 +66,7 @@ % Number of seconds after the end all the stimuli before ending the run cfg.timing.endDelay = 3.6; - % reexpress those in terms of repetition time + % reexpress those in terms of number repetition time if cfg.pacedByTriggers.do cfg.pacedByTriggers.quietMode = true; diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..95e94cd --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +v0.0.1 \ No newline at end of file