Sessions 5-6
In this session, we will explore OpenSesame as an alternative to E-Prime, covering the structure of OpenSesame, a comparison between both tools, and how to create tasks like the Stroop and lexical decision tasks.
OpenSesame Overview
Key Features
- OpenSesame is an open-source, Python-based tool for designing experiments.
- It is free, cross-platform, and has a large online community.
- E-Prime, in contrast, is a paid software that works only on Windows but has more support at CIMCYC.
OpenSesame Structure
While OpenSesame is different from E-Prime, there are some parallels in structure:
OpenSesame | E-Prime |
---|---|
list | loop |
procedure | sequence |
slide | sketchpad |
Some other elements are more specific to OpenSesame, such as the logger and keyboard_response.
Task Examples
Stroop Task in OpenSesame
Objective: Name the color of the ink, not the word.
- Congruent Example: green.
- Incongruent Example:green.
- Timing:
- Fixation: 1000 ms
- Stimulus: 2000 ms (or until response)
Lexical Decision Task in OpenSesame
In this task, participants must decide whether a displayed string is a real word or a non-word.
Trial Structure: - Fixation: 1000 ms - Probe: 2000 ms
You will define which elements are fixed (e.g., fixation cross) and which vary (e.g., words).
Fixed Properties: - Text always “+” - Foreground and background color
Varying Properties: - Word: real or non-word - Response keys
Conditionals in Python
Structure
Conditionals allow specific actions depending on whether certain conditions are met.
Basic Example:
if [correct] == 1:
print('well done')
if [correct] == 1 and [response_time] < 1000:
print('well done')
elif [correct] == 0:
print('try again')
Below, you can find the slides from this session: