|
32 | 32 | % MRI settings |
33 | 33 | cfg = setMRI(cfg); |
34 | 34 |
|
35 | | - cfg.audio.channels = 2; |
36 | | - |
37 | 35 | %% Experiment Design |
38 | | - cfg.names = {'static', 'motion'}; |
39 | | - cfg.possibleDirections = [-1 1]; % 1 motion , -1 static |
40 | | - cfg.numBlocks = size(cfg.possibleDirections, 2); |
41 | | - cfg.numRepetitions = 1; % AT THE MOMENT IT IS NOT SET IN THE MAIN SCRIPT |
| 36 | + |
| 37 | + cfg.design.names = {'static', 'motion'}; |
| 38 | + cfg.design.possibleDirections = [-1 1]; % 1 motion , -1 static |
| 39 | + cfg.design.numBlocks = size(cfg.possibleDirections, 2); % TO CHECK |
| 40 | + cfg.design.numRepetitions = 1; % AT THE MOMENT IT IS NOT SET IN THE MAIN SCRIPT |
| 41 | + cfg.design.nbEventsPerBlock = 12; |
42 | 42 |
|
43 | 43 | %% Timing |
44 | | - cfg.IBI = 0; % 8; |
45 | | - cfg.ISI = 0.1; % Time between events in secs |
46 | | - cfg.onsetDelay = 1; % Number of seconds before the motion stimuli are presented |
47 | | - cfg.endDelay = 1; % Number of seconds after the end all the stimuli before ending the run |
| 44 | + |
| 45 | + % FOR 7T: if you want to create localizers on the fly, the following must be |
| 46 | + % multiples of the scanneryour sequence TR |
| 47 | + % |
| 48 | + % IBI |
| 49 | + % block length = (cfg.eventDuration + cfg.ISI) * cfg.design.nbEventsPerBlock |
| 50 | + |
| 51 | + % Time between blocs in secs |
| 52 | + cfg.timing.IBI = 1.8 * 3; % 8; |
| 53 | + % Time between events in secs |
| 54 | + cfg.timing.ISI = 0.1; |
| 55 | + % Number of seconds before the motion stimuli are presented |
| 56 | + cfg.timing.onsetDelay = .1; |
| 57 | + % Number of seconds after the end all the stimuli before ending the run |
| 58 | + cfg.timing.endDelay = .1; |
48 | 59 |
|
49 | 60 | %% Auditory Stimulation |
50 | 61 |
|
51 | | - % expParameters.experimentType = 'Gratings'; %Dots/Gratings % Visual modality is in RDKs %NOT USED IN THE MAIN SCIPT |
52 | | - cfg.speedEvent = 8; % speed in visual angles |
53 | | - cfg.numEventsPerBlock = 12; % Number of events per block (should not be changed) |
54 | | - cfg.eventDuration = 10; |
| 62 | + cfg.audio.channels = 2; |
55 | 63 |
|
56 | | - %% Task |
| 64 | + %% Task(s) |
57 | 65 |
|
58 | | - cfg.task.name = 'visual localizer'; |
| 66 | + cfg.task.name = 'auditory localizer'; |
59 | 67 |
|
60 | 68 | % Instruction |
61 | 69 | cfg.task.instruction = '1-Detect the RED fixation cross\n \n\n'; |
|
76 | 84 |
|
77 | 85 | end |
78 | 86 |
|
| 87 | +function cfg = setMonitor(cfg) |
| 88 | + |
| 89 | + % Monitor parameters for PTB |
| 90 | + cfg.color.white = [255 255 255]; |
| 91 | + cfg.color.black = [0 0 0]; |
| 92 | + cfg.color.red = [255 0 0]; |
| 93 | + cfg.color.grey = mean([cfg.color.black; cfg.color.white]); |
| 94 | + cfg.color.background = cfg.color.black; |
| 95 | + cfg.text.color = cfg.color.white; |
| 96 | + |
| 97 | + % Monitor parameters |
| 98 | + cfg.screen.monitorWidth = 50; % in cm |
| 99 | + cfg.screen.monitorDistance = 40; % distance from the screen in cm |
| 100 | + |
| 101 | + if strcmpi(cfg.testingDevice, 'mri') |
| 102 | + cfg.screen.monitorWidth = 50; |
| 103 | + cfg.screen.monitorDistance = 40; |
| 104 | + end |
| 105 | +end |
| 106 | + |
79 | 107 | function cfg = setKeyboards(cfg) |
80 | 108 | cfg.keyboard.escapeKey = 'ESCAPE'; |
81 | 109 | cfg.keyboard.responseKey = {'space', 't'}; |
|
99 | 127 | cfg.bids.MRI.TaskDescription = []; |
100 | 128 |
|
101 | 129 | end |
102 | | - |
103 | | -function cfg = setMonitor(cfg) |
104 | | - |
105 | | - % Monitor parameters for PTB |
106 | | - cfg.color.white = [255 255 255]; |
107 | | - cfg.color.black = [0 0 0]; |
108 | | - cfg.color.red = [255 0 0]; |
109 | | - cfg.color.grey = mean([cfg.color.black; cfg.color.white]); |
110 | | - cfg.color.background = cfg.color.black; |
111 | | - cfg.text.color = cfg.color.white; |
112 | | - |
113 | | - % Monitor parameters |
114 | | - cfg.screen.monitorWidth = 50; % in cm |
115 | | - cfg.screen.monitorDistance = 40; % distance from the screen in cm |
116 | | - |
117 | | - if strcmpi(cfg.testingDevice, 'mri') |
118 | | - cfg.screen.monitorWidth = 50; |
119 | | - cfg.screen.monitorDistance = 40; |
120 | | - end |
121 | | -end |
|
0 commit comments