Skip to content

Instantly share code, notes, and snippets.

@lvanderlinden
lvanderlinden / gist:4755129
Created February 11, 2013 15:29
autolog function in the eyelink_logger item only logs built-in variables
autolog function in the eyelink_logger item only logs built-in variables such as 'response_time', but not variables that are manually set (either via the GUI or via exp.set())
location_target = self.get('location_target')
resp = self.get("response")
# Here you determine whether the response is correct, like
# the scripts posted earlier by yourself and Edwin.
# The only addition is the else-statement at the end,
# to make sure that RT should be included in the averages
# if location_target is not "none".
if location_target == "none": # No-trial
# In OpenSesame 0.27, no-responses are saved as 'None'
location_target = self.get('location_target')
resp = self.get("response")
# Here you determine whether the response is correct, like
# the scripts posted earlier by yourself and Edwin.
# The only addition is the else-statement at the end,
# to make sure that RT should be included in the averages
# ig location_target is not "none".
if location_target == "none": # No-trial
# In OpenSesame 0.27, no-responses are saved as 'None'
global lRT, lCorrect
lRT = []
lCorrect = []
location_target = self.get('location_target')
resp = self.get("response")
# Here you determine whether the response is correct, like
# the scripts posted earlier by yourself and Edwin.
# The only addition is the else-statement at the end,
# to make sure that RT should be included in the averages
# ig location_target is not "none".
if location_target == "none": # No-trial
# In OpenSesame 0.27, no-responses are saved as 'None'
# The response time on a given trial can be retrieved in an
# inline_script item like so:
trial_rt = self.get("response_time")
# Check whether the RT matches your criteria:
if trial_rt > 3000:
show_feedback = "yes"
else:
show_feedback = "no"
# Generated by OpenSesame 0.27~pre15 (Frisky Freud)
# Thu Oct 18 12:22:38 2012 (posix)
# <http://www.cogsci.nl/opensesame>
set foreground "white"
set subject_parity "even"
set font_size "18"
set description "A template containing a practice and an experimental phase"
set title "Extended template"
set start "experiment"
# The response time on a given trial can be retrieved in an
# inline_script item like so:
trial_rt = self.get("response_time")
# Check whether the RT matches your criteria:
if trial_rt > 3000:
show_feedback = "yes"
else:
show_feedback = "no"
# Generated by OpenSesame 0.27~pre15 (Frisky Freud)
# Thu Oct 18 11:44:08 2012 (posix)
# <http://www.cogsci.nl/opensesame>
set foreground "white"
set subject_parity "even"
set font_size "18"
set description "A template containing a practice and an experimental phase"
set title "Extended template"
set start "experiment"
# The response time on a given trial can be retrieved in an
# inline_script item like so:
trial_rt = self.get("response_time_keyboard_response")
# Check whether the RT matches your criteria:
if trial_rt > 3000:
show_feedback = "yes"
else:
show_feedback = "no"