-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexperiment_english_simplified.osexp
236 lines (216 loc) · 8.39 KB
/
experiment_english_simplified.osexp
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
---
API: 2
OpenSesame: 3.1.7
Platform: nt
---
set width 1680
set uniform_coordinates yes
set title example_experiment
set synth_backend legacy
set subject_parity even
set subject_nr 0
set start experiment
set sound_sample_size -16
set sound_freq 48000
set sound_channels 2
set sound_buf_size 1024
set sampler_backend legacy
set round_decimals 2
set mouse_backend legacy
set keyboard_backend legacy
set height 1050
set fullscreen no
set form_clicks no
set foreground black
set font_underline no
set font_size 24
set font_italic no
set font_family sans
set font_bold no
set experiment_path "C:\\Users\\Pascal\\Documents\\GitHub\\mousetrap-resources\\KieslichHenninger2017\\experiment"
set disable_garbage_collection yes
set description "Default description"
set coordinates relative
set compensation 0
set color_backend legacy
set clock_backend legacy
set canvas_backend legacy
set bidi no
set background white
define notepad description
__note__
This is a simplified version of the lab experiment
reported in the mousetrap article:
Kieslich, P. J., & Henninger, F. (in press).
Mousetrap: An integrated, open-source mouse-tracking package.
Behavior Research Methods. doi:10.3758/s13428-017-0900-z
The study is based on experiment 1 from
Dale, R., Kehoe, C., & Spivey, M. J. (2007).
Graded motor responses in the time course of
categorizing atypical exemplars.
Memory & Cognition, 35(1), 15-28.
The screen resolution, button positions and sizes, and trial procedure
corresponds exactly to the implementation in the lab study.
Instructions are shortened (and were in German in the lab study)
and practice trials are left out.
As material, only four exemplary trials with different material are included.
The position of the response categories (left/right) in each trial
is randomized using the advanced loop operation shuffle_horiz
(see bottom of OpenSesame script of stimuli loop).
__end__
set description "A simple notepad to document your experiment. This plug-in does nothing."
define sketchpad empty_screen
set duration 1000
set description "Präsentiert Stimuli"
define sketchpad end
set duration keypress
set description "Displays stimuli"
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=24 html=yes show_if=always text="Thank you!<br /><br />You have completed all trials.<br /><br />(Press any key to exit)" x=0 y=0 z_index=0
define sequence experiment
set flush_keyboard yes
set description "Runs a number of items in sequence"
run description always
run instructions always
run stimuli always
run end always
define mousetrap_response get_response
__warning_message__
draw textline text="Please start moving" x=0 y=0 sketchpad=present_stimulus
__end__
set update_feedback yes
set timeout infinite
set start_coordinates "0;397"
set skip_item no
set save_trajectories yes
set reset_mouse no
set number_of_buttons 2
set mouse_buttons_allowed "left_button;right_button"
set max_initiation_time 1000
set logging_resolution 10
set description "Tracks mouse movements"
set correct_button "[CategoryCorrect]"
set click_required yes
set check_initiation_time no
set button4 ""
set button3 ""
set button2 "x=840 y=-525 w=-350 h=170 name=[CategoryRight]"
set button1 "x=-840 y=-525 w=350 h=170 name=[CategoryLeft]"
set boundaries "upper=no lower=no left=no right=no"
define mousetrap_response get_start_click
__warning_message__
draw textline text="Please start moving" x=0 y=0 sketchpad=example
__end__
set update_feedback no
set timeout infinite
set start_coordinates "0;397"
set skip_item no
set save_trajectories no
set reset_mouse no
set number_of_buttons 1
set mouse_buttons_allowed "left_button;right_button"
set max_initiation_time 1000
set logging_resolution 10
set description "Tracks mouse movements"
set correct_button ""
set click_required yes
set check_initiation_time no
set button4 ""
set button3 ""
set button2 ""
set button1 "x=-175 y=525 w=350 h=-170 name=Start"
set boundaries "upper=no lower=no left=no right=no"
define form_text_display instructions
set timeout infinite
set spacing 10
set rows "1;4;1"
set only_render no
set ok_text OK
set margins "50;50;50;50"
set form_title "<span size=24>Welcome</span>"
__form_text__
In the following, you will be presented with a number of different animals.
Your task is to judge to which of two categories each animal belongs.
The name of the animal that we would ask you to categorize will be shown in the bottom center of the display.
Two buttons representing the categories will be located in the top left and right corners.
Please indicate your answer by clicking on the corresponding button.
You will start each trial manually by clicking on a start button.
__end__
set description "A simple text display form"
set cols "1;1;1"
set _theme gray
widget 0 0 3 1 label text="[form_title]"
widget 0 1 3 1 label center=no text="[form_text]"
widget 1 2 1 1 button text="[ok_text]"
define logger logger
set description "Logs experimental data"
set auto_log yes
define sketchpad present_categories
set duration 2000
set description "Displays stimuli"
draw rect color=black fill=0 h=170 penwidth=1 show_if=always w=350 x=-840 y=-525 z_index=0
draw rect color=black fill=0 h=170 penwidth=1 show_if=always w=-350 x=840 y=-525 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=32 html=yes show_if=always text="[CategoryLeft]" x=-665 y=-440 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=32 html=yes show_if=always text="[CategoryRight]" x=665 y=-440 z_index=0
define sketchpad present_start
set duration 0
set description "Displays stimuli"
draw rect color=black fill=0 h=170 penwidth=1 show_if=always w=350 x=-840 y=-525 z_index=0
draw rect color=black fill=0 h=170 penwidth=1 show_if=always w=-350 x=840 y=-525 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=32 html=yes show_if=always text="[CategoryLeft]" x=-665 y=-440 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=32 html=yes show_if=always text="[CategoryRight]" x=665 y=-440 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=32 html=yes show_if=always text="Click here" x=0 y=440 z_index=0
draw rect color=black fill=0 h=-170 penwidth=1 show_if=always w=350 x=-175 y=525 z_index=0
define sketchpad present_stimulus
set duration 0
set description "Displays stimuli"
draw rect color=black fill=0 h=170 penwidth=1 show_if=always w=350 x=-840 y=-525 z_index=0
draw rect color=black fill=0 h=170 penwidth=1 show_if=always w=-350 x=840 y=-525 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=32 html=yes show_if=always text="[CategoryLeft]" x=-665 y=-440 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=32 html=yes show_if=always text="[CategoryRight]" x=665 y=-440 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=32 html=yes show_if=always text="[Exemplar]" x=0 y=355 z_index=0
define loop stimuli
set source_file ""
set source table
set skip 0
set repeat 1
set order random
set offset no
set item trial
set description "Repeatedly runs another item"
set cycles 4
set continuous no
set column_order "Condition;CategoryLeft;CategoryRight;CategoryCorrect;Exemplar"
set break_if_on_first yes
set break_if never
setcycle 0 CategoryCorrect mammal
setcycle 0 CategoryLeft mammal
setcycle 0 CategoryRight fish
setcycle 0 Condition Typical
setcycle 0 Exemplar Monkey
setcycle 1 CategoryCorrect reptile
setcycle 1 CategoryLeft bird
setcycle 1 CategoryRight reptile
setcycle 1 Condition Typical
setcycle 1 Exemplar Tortoise
setcycle 2 CategoryCorrect bird
setcycle 2 CategoryLeft bird
setcycle 2 CategoryRight mammal
setcycle 2 Condition Atypical
setcycle 2 Exemplar Ostrich
setcycle 3 CategoryCorrect mammal
setcycle 3 CategoryLeft fish
setcycle 3 CategoryRight mammal
setcycle 3 Condition Atypical
setcycle 3 Exemplar Dolphin
shuffle_horiz CategoryLeft CategoryRight
run trial
define sequence trial
set flush_keyboard yes
set description "Runs a number of items in sequence"
run empty_screen always
run present_categories always
run present_start always
run get_start_click always
run present_stimulus always
run get_response always
run logger always