-
Notifications
You must be signed in to change notification settings - Fork 1
/
instructions.m
57 lines (53 loc) · 1.98 KB
/
instructions.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
49
50
51
52
53
54
55
56
57
%% provide instructions
switch trials(t).block
case 1
a = imread([my_path '/instructions/instr1a.PNG']);
h = Screen('MakeTexture',Sc.window,a);
Screen('DrawTexture',Sc.window,h,[],Sc.rect);
Screen('Flip',Sc.window);
collect_response(cfg,inf);
Screen('Flip',Sc.window);
a = imread([my_path '/instructions/instr1b.PNG']);
h = Screen('MakeTexture',Sc.window,a);
Screen('DrawTexture',Sc.window,h,[],Sc.rect);
Screen('Flip',Sc.window);
collect_response(cfg,inf);
Screen('Flip',Sc.window);
a = imread([my_path '/instructions/instr1c.PNG']);
h = Screen('MakeTexture',Sc.window,a);
Screen('DrawTexture',Sc.window,h,[],Sc.rect);
Screen('Flip',Sc.window);
collect_response(cfg,inf);
Screen('Flip',Sc.window);
case 2
a = imread([my_path '/instructions/instr2a.PNG']);
h = Screen('MakeTexture',Sc.window,a);
Screen('DrawTexture',Sc.window,h,[],Sc.rect);
Screen('Flip',Sc.window);
collect_response(cfg,inf);
Screen('Flip',Sc.window);
a = imread([my_path '/instructions/instr2b.PNG']);
h = Screen('MakeTexture',Sc.window,a);
Screen('DrawTexture',Sc.window,h,[],Sc.rect);
Screen('Flip',Sc.window);
collect_response(cfg,inf);
Screen('Flip',Sc.window);
case 3
a = imread([my_path '/instructions/instr3.PNG']);
h = Screen('MakeTexture',Sc.window,a);
Screen('DrawTexture',Sc.window,h,[],Sc.rect);
Screen('Flip',Sc.window);
collect_response(cfg,inf);
Screen('Flip',Sc.window);
case 4
a = imread([my_path '/instructions/instr4.PNG']);
h = Screen('MakeTexture',Sc.window,a);
Screen('DrawTexture',Sc.window,h,[],Sc.rect);
Screen('Flip',Sc.window);
collect_response(cfg,inf);
Screen('Flip',Sc.window);
otherwise
end
add_fixation;
Screen('Flip',Sc.window);
WaitSecs(1.000);