Skip to content

Commit ba1a20c

Browse files
authored
Merge pull request #23 from Remi-Gau/remi-expdesign
update design
2 parents e37bed6 + 1d889f5 commit ba1a20c

File tree

6 files changed

+281
-158
lines changed

6 files changed

+281
-158
lines changed

lib/CPP_BIDS

Submodule CPP_BIDS updated 1 file

lib/CPP_PTB

setParameters.m

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
'output');
1212

1313
%% Debug mode settings
14+
1415
cfg.debug.do = true; % To test the script out of the scanner, skip PTB sync
1516
cfg.debug.smallWin = false; % To test on a part of the screen, change to 1
1617
cfg.debug.transpWin = true; % To test with trasparent full size screen
@@ -32,10 +33,14 @@
3233
cfg = setMRI(cfg);
3334

3435
%% Experiment Design
35-
cfg.names = {'static', 'motion'};
36-
cfg.possibleDirections = [-1 1]; % 1 motion , -1 static
37-
cfg.numBlocks = size(cfg.possibleDirections, 2);
38-
cfg.numRepetitions = 1; % AT THE MOMENT IT IS NOT SET IN THE MAIN SCRIPT
36+
37+
cfg.design.names = {'static'; 'motion'};
38+
cfg.design.nbRepetitions = 4;
39+
cfg.design.nbEventsPerBlock = 12; % DO NOT CHANGE
40+
41+
%% Timing
42+
43+
% Time between blocs in secs
3944
cfg.IBI = .5; % 8;
4045
% Time between events in secs
4146
cfg.ISI = 0.5;
@@ -44,25 +49,20 @@
4449
% Number of seconds after the end all the stimuli before ending the run
4550
cfg.endDelay = .1;
4651

47-
%% Visual Stimulation
48-
49-
% Number of events per block (should not be changed)
50-
cfg.numEventsPerBlock = 12;
5152
cfg.eventDuration = 1; % second
53+
54+
%% Visual Stimulation
5255

53-
% speed in visual angles / second
56+
% Speed in visual angles / second
5457
cfg.dot.speed = 15;
5558
% Coherence Level (0-1)
5659
cfg.dot.coherence = 1;
57-
% nb dots per visual angle square.
58-
cfg.dot.density = .25;
59-
60+
% Number of dots per visual angle square.
61+
cfg.dot.density = .1;
6062
% Dot life time in seconds
6163
cfg.dot.lifeTime = 10;
62-
6364
% proportion of dots killed per frame
64-
cfg.dot.proportionKilledPerFrame = .05;
65-
65+
cfg.dot.proportionKilledPerFrame = 0;
6666
% Dot Size (dot width) in visual angles.
6767
cfg.dot.size = 1;
6868
cfg.dot.color = cfg.color.white;
@@ -92,6 +92,7 @@
9292
cfg.target.duration = 0.05; % In secs
9393

9494
cfg.extraColumns = {'direction', 'speed', 'target', 'event', 'block'};
95+
9596
end
9697

9798
function cfg = setKeyboards(cfg)

subfun/doDotMo.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
%% Get parameters
1818

19-
dots = initializeDots(cfg, thisEvent);
19+
dots = initDots(cfg, thisEvent);
2020

2121
% Set for how many frames this event will last
2222
framesLeft = floor(cfg.eventDuration / cfg.screen.ifi);

0 commit comments

Comments
 (0)