forked from wallacelab22/Human_AV_Motion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instructions_trainVis.m
72 lines (63 loc) · 3.53 KB
/
instructions_trainVis.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
function instructions_trainVis(curWindow, cWhite0, pahandle, corr_soundout, incorr_soundout)
% Instructions 2
Screen('DrawText', curWindow, '...Welcome to this experiment...',500,300,cWhite0);
Screen('DrawText', curWindow, 'This is a motion discrimination task.',300,400,cWhite0);
Screen('DrawText', curWindow, 'Your task is to report the direction (LEFT or RIGHT) of a stimulus.',300,500,cWhite0);
Screen('DrawText', curWindow, 'Press any key to continue...',300,650,cWhite0);
Screen('Flip',curWindow);
keytest_unbound;
% Instructions 3
Screen('DrawText', curWindow, 'On each trial we will present a patch of visual dots.',300,300,cWhite0);
Screen('DrawText', curWindow, 'Your task is to indicate the direction of motion on EACH TRIAL by',300,400,cWhite0);
Screen('DrawText', curWindow, 'pressing 0 on the box for leftward motion or 1 on the box for rightward motion',300,500,cWhite0);
Screen('DrawText', curWindow, 'Press any key to continue...',300,650,cWhite0);
Screen('Flip',curWindow);
keytest_unbound;
% Instructions 4
Screen('DrawText', curWindow, 'During each trial, a red dot will appear on the center of',300,300,cWhite0);
Screen('DrawText', curWindow, 'the screen. Please FIXATE the red dot,',300,400,cWhite0);
Screen('DrawText', curWindow, 'throughout the trial.',300,500,cWhite0);
Screen('DrawText', curWindow, 'Press any key to continue...',300,650,cWhite0);
Screen('Flip',curWindow);
keytest_unbound;
% Instructions 5
Screen('DrawText', curWindow, 'After every trial you will be informed if you were correct or incorrect.',300,300,cWhite0);
Screen('DrawText', curWindow, 'The following HIGH pitched tone will be played if you are CORRECT.',300,400,cWhite0);
Screen('DrawText', curWindow, 'Press any key to continue after tone is played...',300,650,cWhite0);
Screen('Flip',curWindow);
WaitSecs(3)
PsychPortAudio('FillBuffer', pahandle, corr_soundout')
PsychPortAudio('Start', pahandle)
keytest_unbound
% Instructions 6
Screen('DrawText', curWindow, 'The CORRECT tone will be played again...',300,400,cWhite0);
Screen('DrawText', curWindow, 'Press any key to continue after tone is played...',300,650,cWhite0);
Screen('Flip',curWindow);
WaitSecs(1)
PsychPortAudio('FillBuffer', pahandle, corr_soundout')
PsychPortAudio('Start', pahandle)
keytest_unbound
% Instructions 7
Screen('DrawText', curWindow, 'After every trial you will be informed if you were correct or incorrect.',300,300,cWhite0);
Screen('DrawText', curWindow, 'The following LOW pitched tone will be played if you are INCORRECT.',300,400,cWhite0);
Screen('DrawText', curWindow, 'Press any key to continue after tone is played...',300,650,cWhite0);
Screen('Flip',curWindow);
WaitSecs(3)
PsychPortAudio('FillBuffer', pahandle, incorr_soundout')
PsychPortAudio('Start', pahandle)
keytest_unbound
% Instructions 8
Screen('DrawText', curWindow, 'The INCORRECT tone will be played again...',300,400,cWhite0);
Screen('DrawText', curWindow, 'Press any key to continue after tone is played...',300,650,cWhite0);
Screen('Flip',curWindow);
WaitSecs(1)
PsychPortAudio('FillBuffer', pahandle, incorr_soundout')
PsychPortAudio('Start', pahandle)
keytest_unbound
% Instructions 9
Screen('DrawText', curWindow, 'If the motion stimulus is ambiguous, make a decision as best as you can.',300,300,cWhite0);
Screen('DrawText', curWindow, 'Please try to respond as QUICKLY as possible on EACH TRIAL',300,400,cWhite0);
Screen('DrawText', curWindow, '...WE WILL START NOW!...',500,500,cWhite0);
Screen('DrawText', curWindow, 'WHEN YOU ARE READY: PRESS ANY KEY TO START THE EXPERIMENT.',300,650,cWhite0);
Screen('Flip',curWindow);
keytest_unbound;