-
Notifications
You must be signed in to change notification settings - Fork 6
/
BEHAV_ExptWrapper_FileProcess_Subject1.m
executable file
·42 lines (36 loc) · 1.24 KB
/
BEHAV_ExptWrapper_FileProcess_Subject1.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
%ExptWrapper_FileProcess_Subject9
%exptDir = '~/code/punisher02/';
%cd(exptDir);
subjectNum = 100;
projectName = 'rtAttenPenn';
subjectRun = 1;
%subjectName = 'rtAttenPenn1';
subjectName = ['behav' num2str(subjectNum)];
% **** types of stimuli to train/show to subjects *******
NEUTRAL = 1;
SAD = 2;
HAPPY = 3;
% *******************************************************
typeNum = HAPPY;
matchNum = 0;
realtimeData = 0;
KbName('UnifyKeyNames')
addpath(genpath('/opt/psychtoolbox/'))
%% Generate expt sequence
%make it fore each of the different type numbers and counterbalance order
%for every subject
if matchNum ==0
runNum = 1;
rtfeedback = 0;
[blockData patterns] = RealTimePunisherExptSequence(subjectNum,subjectName,runNum,rtfeedback,typeNum)
runNum = 2;
% changing it here for behavioral have rtfeedback = 0
rtfeedback = 0;
[blockData patterns] = RealTimePunisherExptSequence(subjectNum,subjectName,runNum,rtfeedback,typeNum)
runNum = 3;
rtfeedback = 0;
[blockData patterns] = RealTimePunisherExptSequence(subjectNum,subjectName,runNum,rtfeedback,typeNum)
runNum = 4;
rtfeedback = 0;
[blockData patterns] = RealTimePunisherExptSequence(subjectNum,subjectName,runNum,rtfeedback,typeNum)
end