Skip to content

Commit 2db46f9

Browse files
committed
MT / MST ready
1 parent 9454d50 commit 2db46f9

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

lib/CPP_BIDS

Submodule CPP_BIDS updated 50 files

lib/CPP_PTB

Submodule CPP_PTB updated 58 files

setParameters.m

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

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

2323
cfg.verbose = false;
2424

@@ -40,13 +40,18 @@
4040

4141
%% Experiment Design
4242

43-
% cfg.design.localizer = 'MT_MST';
43+
cfg.design.localizer = 'MT_MST';
4444

45-
% cfg.design.motionType = 'radial';
46-
cfg.design.motionType = 'translation';
47-
48-
cfg.design.motionDirections = [0 0 180 180];
45+
cfg.design.motionType = 'radial';
46+
cfg.design.motionDirections = [666 666 -666 -666];
4947
cfg.design.names = {'static'; 'motion'};
48+
cfg.design.xDisplacementFixation = 7;
49+
cfg.design.xDisplacementAperture = 3;
50+
51+
% cfg.design.motionType = 'translation';
52+
% cfg.design.motionDirections = [0 0 180 180];
53+
% cfg.design.names = {'static'; 'motion'};
54+
5055
cfg.design.nbRepetitions = 8;
5156
cfg.design.nbEventsPerBlock = 12; % DO NOT CHANGE
5257

@@ -109,9 +114,9 @@
109114
% Number of dots per visual angle square.
110115
cfg.dot.density = 1;
111116
% Dot life time in seconds
112-
cfg.dot.lifeTime = .15;
117+
cfg.dot.lifeTime = .5;
113118
% proportion of dots killed per frame
114-
cfg.dot.proportionKilledPerFrame = 0.005;
119+
cfg.dot.proportionKilledPerFrame = 0.05;
115120
% Dot Size (dot width) in visual angles.
116121
cfg.dot.size = .2;
117122
cfg.dot.color = cfg.color.white;
@@ -124,7 +129,7 @@
124129
if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST')
125130
cfg.aperture.type = 'circle';
126131
cfg.aperture.width = 7; % if left empty it will take the screen height
127-
cfg.aperture.xPos = 7;
132+
cfg.aperture.xPos = cfg.design.xDisplacementAperture;
128133
end
129134

130135
%% Task(s)

subfun/preTrialSetup.m

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,25 @@
1616
% If this frame shows a target we change the color of the cross
1717
thisFixation.fixation = cfg.fixation;
1818
thisFixation.screen = cfg.screen;
19+
20+
% To shift the dot matrix
21+
thisEvent.dotCenterXPosPix = 0;
1922

2023
switch thisEvent.trial_type
2124
case 'fixation_right'
2225
cfg.aperture.xPosPix = -abs(cfg.aperture.xPosPix);
26+
27+
thisEvent.dotCenterXPosPix = cfg.aperture.xPosPix;
2328

24-
thisFixation.fixation.xDisplacement = cfg.aperture.xPos;
29+
thisFixation.fixation.xDisplacement = cfg.design.xDisplacementFixation;
2530
thisFixation = initFixation(thisFixation);
2631

2732
case 'fixation_left'
2833
cfg.aperture.xPosPix = +abs(cfg.aperture.xPosPix);
34+
35+
thisEvent.dotCenterXPosPix = cfg.aperture.xPosPix;
2936

30-
thisFixation.fixation.xDisplacement = -cfg.aperture.xPos;
37+
thisFixation.fixation.xDisplacement = -cfg.design.xDisplacementFixation;
3138
thisFixation = initFixation(thisFixation);
3239

3340
end

0 commit comments

Comments
 (0)