Skip to content

Commit f32b2f4

Browse files
committed
add checks for mt/mst parameters
1 parent cfcf9fa commit f32b2f4

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

setParameters.m

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
cfg.debug.do = false; % To test the script out of the scanner, skip PTB sync
1919
cfg.debug.smallWin = false; % To test on a part of the screen, change to 1
20-
cfg.debug.transpWin = false; % To test with trasparent full size screen
20+
cfg.debug.transpWin = true; % To test with trasparent full size screen
2121

2222
cfg.skipSyncTests = 1;
2323

@@ -48,17 +48,17 @@
4848
% - MST: radial motion centered in a circle aperture that is on the opposite
4949
% side of the screen relative to the fixation
5050
% - alternates fixaton left and fixation right
51-
cfg.design.localizer = 'MT';
52-
% cfg.design.localizer = 'MT_MST';
51+
% cfg.design.localizer = 'MT';
52+
cfg.design.localizer = 'MT_MST';
5353

5454
cfg.design.motionType = 'translation';
5555
cfg.design.motionDirections = [0 0 180 180];
5656
cfg.design.names = {'static'; 'motion'};
5757

5858
% if you have static and motion and `nbRepetions` = 4, this will return 8 blocks (n blocks per
5959
% hemifield in case of MT/MST localizer)
60-
cfg.design.nbRepetitions = 4;
61-
cfg.design.nbEventsPerBlock = 12;
60+
cfg.design.nbRepetitions = 10;
61+
cfg.design.nbEventsPerBlock = 10;
6262

6363
%% Timing
6464

@@ -68,7 +68,7 @@
6868
% IBI
6969
% block length = (cfg.eventDuration + cfg.ISI) * cfg.design.nbEventsPerBlock
7070

71-
cfg.timing.eventDuration = 0.45; % second
71+
cfg.timing.eventDuration = 0.30; % second
7272

7373
% Time between blocs in secs
7474
cfg.timing.IBI = 0;
@@ -159,8 +159,8 @@
159159
'r', 'g', 'y', 'b', ...
160160
'd', 'n', 'z', 'e', ...
161161
't'};
162-
cfg.keyboard.keyboard = [7];
163-
cfg.keyboard.responseBox = [7];
162+
cfg.keyboard.keyboard = [];
163+
cfg.keyboard.responseBox = [];
164164

165165
if strcmpi(cfg.testingDevice, 'mri')
166166
cfg.keyboard.keyboard = [];
@@ -209,13 +209,19 @@
209209

210210
cfg.design.motionType = 'radial';
211211
cfg.design.motionDirections = [666 -666];
212-
cfg.design.names = {'motion'; 'static'};
212+
cfg.design.names = {'motion'};
213213
cfg.design.fixationPosition = {'fixation_left'; 'fixation_right'};
214214
% cfg.design.fixationPosition = {'fixation_right'; 'fixation_left'};
215215
cfg.design.xDisplacementFixation = 7;
216216
cfg.design.xDisplacementAperture = 3;
217-
218-
cfg.timing.IBI = 3.6;
217+
218+
% here we double the repetions (2 hemifields)
219+
cfg.design.nbRepetitions = cfg.design.nbRepetitions * length(cfg.design.fixationPosition);
220+
221+
% inward&outward are presented as separated event
222+
cfg.design.nbEventsPerBlock = cfg.design.nbEventsPerBlock * 2;
223+
224+
cfg.timing.IBI = 4;
219225

220226
% reexpress those in terms of repetition time
221227
if cfg.pacedByTriggers.do

0 commit comments

Comments
 (0)