forked from emmetaobrien/sternberg-working-memory-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWMeeg.sce
/
WMeeg.sce
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
scenario = "WM fMRI expt";
#scenario_type = trials;
scenario_type = trials;
pcl_file="WMeeg.pcl";
pulse_width=1;
active_buttons = 3;
button_codes= 1, 2, 9;
#left mouse button, right mouse button, 'a' key on keyboard (easy for experimenter to reach)
write_codes=true; # use if sending codes out through a port
default_background_color=0,0,0;
default_font="arial";
default_font_size = 40;
default_text_color=255,255,255;
begin;
picture { }default;
bitmap {filename="WMscreenshot.bmp";} screenshot;
picture{text {caption="debug"; }debug_txt; x=0; y=0;}debug_pic;
picture{
bitmap screenshot; x=0; y=0;
text {caption="Index finger
for yes";
font_size=14;
font="arial";
}instructions_txtL; x=-100; y=-100;
text {caption="Middle finger
for no";
font_size=14;
font="arial";
}instructions_txtR; x=100; y=-100;
text {caption="INSTRUCTIONS";
font_size=14;
font="arial";
}instrct; x = 0; y = 100;
}instructions_pic1;
picture{
bitmap screenshot; x=0; y=0;
text instructions_txtL; x=-100; y=-100;
text instructions_txtR; x=100; y=-100;
text {caption="STARTING...";
font_size=16;
font="arial";
}starting; x = 0; y = 100;
}instructions_pic2;
########################################################
trial{
trial_type = specific_response;
trial_duration = forever;
terminator_button = 3;
stimulus_event{
picture instructions_pic1;
}instructions_event;
}instructions_trial;
trial {
picture instructions_pic2;
code = "start_trial";
duration = 1000;
mri_pulse = 1; # set for testing
}start_trial;
trial {
stimulus_event{
picture default;
code = "sync_eeg_codes";
port_code = 1;
duration = 10;
}sync_event;
}sync_trial;
trial{
all_responses = false; # responses made in this trial will be ignored
stimulus_event{
picture {text{caption = "5"; font_size = 40;} five; x = 0; y = 0;};
duration = 1000;};
stimulus_event{
picture {text{caption = "4"; font_size = 40;} four; x = 0; y = 0;};
deltat = 1000;
duration = 1000;};
stimulus_event{
picture {text{caption = "3"; font_size = 40;} three; x = 0; y = 0;};
deltat = 1000;
duration = 1000;};
stimulus_event{
picture {text{caption = "2"; font_size = 40;} two; x = 0; y = 0;};
deltat = 1000;
duration = 1000;};
stimulus_event{
picture {text {caption = "1"; font_size = 40;} one; x = 0; y = 0;};
deltat = 1000;
duration = 1000;};
}countdown_trial;
#trial{
# stimulus_event{
# picture {text{caption="+";}iti_txt; x=0; y=0; }fixn_pic;
# duration=500;
# code="fixn";
# }fixn_event;
# stimulus_event{
# picture {text{caption="DEBUG";}encode_txt; x=0; y=0; }encode_pic;
# #deltat=500;
# duration=4000;
# code="encode";
# }encode_event;
# stimulus_event{
# picture {text{caption=" ";}delay_txt; x=0; y=0; }delay_pic;
# deltat=4000;
# duration=4000; # will be set in pcl to be 0 or 4 sec
# code="delay";
# }delay_event;
# stimulus_event{
# picture {text{caption="A";}probe_txt; x=0; y=0; }probe_pic;
# deltat=4000;
# duration=2000;
# code="probe";
# }probe_event;
# stimulus_event{
# picture {text{caption="*";}iti_txt; x=0; y=0; }iti_pic;
# deltat=2000;
# duration=2000; # will be set in pcl to be 2, 4, 6, or 12 sec
# code="iti";
# }iti_event;
# }wm_trial;
trial{
stimulus_event{
picture {text{caption="DEBUG";}encode_txt; x=0; y=0; }encode_pic;
#deltat=500;
duration=4000;
code="encode";
}encode_event;
stimulus_event{
picture {text{caption=" ";}delay_txt; x=0; y=0; }delay_pic;
deltat=4000;
duration=4000; # will be set in pcl to be 0 or 4 sec
code="delay";
}delay_event;
}encode_trial;
trial{
stimulus_event{
picture {text{caption="A";}probe_txt; x=0; y=0; }probe_pic;
deltat=4000;
duration=2000;
code="probe";
}probe_event;
stimulus_event{
picture {text{caption="*";}iti_txt; x=0; y=0; }iti_pic;
deltat=2000;
duration=2000; # will be set in pcl to be 2, 4, 6, or 12 sec
code="iti";
}iti_event;
}probe_trial;
trial{
stimulus_event{
picture default;
duration=27000;
code="rest_break_blankscreen";
}rest_blank_event;
}rest_break_blank;
trial {
all_responses = false; # responses made in this trial will be ignored
picture {text{caption = "Thank you. Please remember to stay still
until the scanner stops.";}; x = 0; y = 0;}finished;
code = "thanks";
duration = 10000;
}end_trial;