-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinternalpercepts_parameters.m
48 lines (41 loc) · 3.17 KB
/
internalpercepts_parameters.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%%%%%%%%% %%%%%%%%%%
% Here we set some parameters that are relevant to the experiment%
%%%%%%%%% %%%%%%%%%%
if whichsoftware == 'octave'
rootDir = 'C:/Users/uomom/Documents/internalpercepts_TMS/'; % root directory for the experiment - Windows
else
rootDir = 'D:/Documents/Marco_Gandolfo/internalpercepts_TMS/'; % root directory for the experiment in the lab - Windows
%% set connection for TMS Commented for now
%o = magventure('COM1');
%o.connect();
%[e, r]=o.getStatus();
%o.setTrain(25,2,1,1);
end
imageDir = [rootDir whichset '/']; % the folder where we keep the images
theFlips = char('flip', 'flop'); % the orientations of the images, define matrix with strings, then pick one randomly
whichFlip = theFlips(randi([1 2]),:); % pick either flip or flop
imageDirFlip = [imageDir whichset '_' whichFlip '/']; % pick the folder with the random flip of the right set
thememorisationdir = [imageDirFlip, memorisation, '/']; % pick the right folder for the memorisation images
exp_phase_dir = [thememorisationdir, 'test/'];
miniblocks = char('block1', 'block2', 'block3', 'block4', ...
'block5', 'block6', 'block7', 'block8'); % the miniblocks
memocondNames = char('full', 'box', 'foil'); % the folder names == the prefix of each image name
expphaseNames = char('seen', 'not_seen');
sh_miniblocks = Shuffle(miniblocks); %% shuffle the order of the blocks in which folders will be read
numImages = 4; % number of pictures in each condition and block
numBlocks = 1; % how many blocks of 32 trials do I want to test?
numDurs = 5; % number of fixation durations, to jitter fixation cross durations
memotestpixDur = 2-0.5; % number of screen frames for target stimuli in the memotestphase
testphasepixDur = 24; % number of screen frames for the experimental test phase for the target picture
maskDur = 18; % number of screen frames for the Mask
studyphasePixDur = 360; % 6 seconds duration or keypress
numStudyReps = 1; % how many times they repeat
fixDur = [45 60 90 105 120] - 0.5; % number of screen frames for the Fixation; subtract 0.5 to compensate for timing jitter (see DriftWaitDemo.m)
maxRespDur = 2; % timeout for the response (in seconds, not frames, because for this we use GetSecs rather than frame timing)
memtestpixdur = 2 - 0.5; %% duration of the picture for the memtest in frames
maxCatRespDur = 3; %% maximum time for categorical response in seconds
expphasepixDur = 21 - 0.5; %% 357 msecs
expphaseMaskDur = 6 -0.5; %% 100 ms
%% define things for slidescale
question = 'How Well did you see the blurry object?';
endPoints = {'Not at all', 'Quite well'};