|
12 | 12 |
|
13 | 13 | %% Debug mode settings |
14 | 14 |
|
15 | | - cfg.debug.do = true; % To test the script out of the scanner, skip PTB sync |
| 15 | + cfg.debug.do = false; % To test the script out of the scanner, skip PTB sync |
16 | 16 | cfg.debug.smallWin = false; % To test on a part of the screen, change to 1 |
17 | | - cfg.debug.transpWin = true; % To test with trasparent full size screen |
| 17 | + cfg.debug.transpWin = false; % To test with trasparent full size screen |
18 | 18 |
|
19 | 19 | cfg.verbose = false; |
20 | 20 |
|
21 | 21 | %% Engine parameters |
22 | 22 |
|
23 | | - cfg.testingDevice = 'pc'; |
24 | | - cfg.eyeTracker.do = false; |
| 23 | + cfg.testingDevice = 'mri'; |
| 24 | + cfg.eyeTracker.do = true; |
25 | 25 | cfg.audio.do = false; |
26 | 26 |
|
27 | 27 | cfg = setMonitor(cfg); |
|
38 | 38 | % cfg.design.motionType = 'radial'; |
39 | 39 | cfg.design.motionType = 'translation'; |
40 | 40 | cfg.design.names = {'static'; 'motion'}; |
41 | | - cfg.design.nbRepetitions = 4; |
| 41 | + cfg.design.nbRepetitions = 10; |
42 | 42 | cfg.design.nbEventsPerBlock = 12; % DO NOT CHANGE |
43 | 43 |
|
44 | 44 | %% Timing |
|
50 | 50 | % block length = (cfg.eventDuration + cfg.ISI) * cfg.design.nbEventsPerBlock |
51 | 51 |
|
52 | 52 | % Time between blocs in secs |
53 | | - cfg.timing.IBI = 1.8 * 3; % 8; |
| 53 | + cfg.timing.IBI = 1.8; |
54 | 54 | % Time between events in secs |
55 | | - cfg.timing.ISI = 0.1; |
| 55 | + cfg.timing.ISI = 0; |
56 | 56 | % Number of seconds before the motion stimuli are presented |
57 | | - cfg.timing.onsetDelay = .1; |
| 57 | + cfg.timing.onsetDelay = 0; |
58 | 58 | % Number of seconds after the end all the stimuli before ending the run |
59 | | - cfg.timing.endDelay = .1; |
| 59 | + cfg.timing.endDelay = 3.6; |
60 | 60 |
|
61 | | - cfg.timing.eventDuration = 0.8; % second |
| 61 | + cfg.timing.eventDuration = 0.9; % second |
62 | 62 |
|
63 | 63 | %% Visual Stimulation |
64 | 64 |
|
|
67 | 67 | % Coherence Level (0-1) |
68 | 68 | cfg.dot.coherence = 1; |
69 | 69 | % Number of dots per visual angle square. |
70 | | - cfg.dot.density = .1; |
| 70 | + cfg.dot.density = 1; |
71 | 71 | % Dot life time in seconds |
72 | 72 | cfg.dot.lifeTime = 10; |
73 | 73 | % proportion of dots killed per frame |
74 | 74 | cfg.dot.proportionKilledPerFrame = 0; |
75 | 75 | % Dot Size (dot width) in visual angles. |
76 | | - cfg.dot.size = 1; |
| 76 | + cfg.dot.size = .2; |
77 | 77 | cfg.dot.color = cfg.color.white; |
78 | 78 |
|
79 | 79 | % Diameter/length of side of aperture in Visual angles |
80 | | - cfg.aperture.type = 'circle'; |
| 80 | + cfg.aperture.type = 'none'; |
81 | 81 | cfg.aperture.width = []; % if left empty it will take the screen height |
82 | 82 | cfg.aperture.xPos = 0; |
83 | 83 |
|
|
92 | 92 | cfg.fixation.type = 'cross'; |
93 | 93 | cfg.fixation.colorTarget = cfg.color.red; |
94 | 94 | cfg.fixation.color = cfg.color.white; |
95 | | - cfg.fixation.width = 1; |
96 | | - cfg.fixation.lineWidthPix = 2; |
| 95 | + cfg.fixation.width = .5; |
| 96 | + cfg.fixation.lineWidthPix = 3; |
97 | 97 | cfg.fixation.xDisplacement = 0; |
98 | 98 | cfg.fixation.yDisplacement = 0; |
99 | 99 |
|
100 | | - cfg.target.maxNbPerBlock = 2; |
| 100 | + cfg.target.maxNbPerBlock = 1; |
101 | 101 | cfg.target.duration = 0.05; % In secs |
102 | 102 |
|
103 | 103 | cfg.extraColumns = {'direction', 'speed', 'target', 'event', 'block', 'keyName'}; |
|
106 | 106 |
|
107 | 107 | function cfg = setKeyboards(cfg) |
108 | 108 | cfg.keyboard.escapeKey = 'ESCAPE'; |
109 | | - cfg.keyboard.responseKey = {'space', 't'}; |
| 109 | + cfg.keyboard.responseKey = {... |
| 110 | + 'r', 'g', 'y', 'b', ... |
| 111 | + 'd', 'n', 'z', 'e', ... |
| 112 | + 't'}; %dnze rgyb |
110 | 113 | cfg.keyboard.keyboard = []; |
111 | 114 | cfg.keyboard.responseBox = []; |
112 | 115 |
|
|
119 | 122 | function cfg = setMRI(cfg) |
120 | 123 | % letter sent by the trigger to sync stimulation and volume acquisition |
121 | 124 | cfg.mri.triggerKey = 't'; |
122 | | - cfg.mri.triggerNb = 4; |
| 125 | + cfg.mri.triggerNb = 0; |
123 | 126 |
|
124 | 127 | cfg.mri.repetitionTime = 1.8; |
125 | 128 |
|
|
143 | 146 | cfg.screen.monitorDistance = 40; % distance from the screen in cm |
144 | 147 |
|
145 | 148 | if strcmpi(cfg.testingDevice, 'mri') |
146 | | - cfg.screen.monitorWidth = 50; |
147 | | - cfg.screen.monitorDistance = 40; |
| 149 | + cfg.screen.monitorWidth = 25; |
| 150 | + cfg.screen.monitorDistance = 95; |
148 | 151 | end |
149 | 152 | end |
0 commit comments