Simple Reaction Time Test - Touchscreen

Technical Manual

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com), Millisecond

Created: January 17, 2018

Last Modified: January 13, 2025 by K. Borchert (katjab@millisecond.com), Millisecond

Script Copyright © Millisecond Software, LLC

Background

This script implements a simple Reaction Time Task for the touchscreen. A similar task was used by Kochan et al (2013) to study reaction times in dementia patients.

References

Kochan, N., Bunce, D., Pont, S., Slavin, M., Reppermund, S., Brodaty, H., Crawford, J., Mather, K., Kang, K., & Sachdev, P. (2013). Reaction-time measures predict incident dementia over 4 years: The Sydney Memory and Ageing Study. Alzheimer’s & Dementia, 9(4), P536–P536. https://doi.org/10.1016/j.jalz.2013.04.287

Duration

2 minutes

Description

Simple Reaction Time Task: press a home button until a yellow square appears, then click yellow square as fast as possible

The Simple Reaction Time Task tracks the durations participants spent on various subtasks: 1. time spent on HomeButton 2. time between onset of target stimulus and lifting finger off HomeButton (A) 3. time between lifting finger off HomeButton and pressing down on target stimulus (B) 4. time spent on target stimulus (C) 5. time between lifting finger off target stimulus and pressing down on HomeButton (D)

The stimuli in this script can be sized absolutely so that distances btw. buttons are the same on each monitor. To do so, go to section Defaults for more information.

By default, this script uses proportional sizing; using 100% of the available screen height and screen width = 4/3 * screen height (width:height: 4:3)

Procedure

1. Intro with a demo: runs 2 demo trials for each participant regardless of performance

2. Practice:
- max. 10 trials
- Pass Criteria: 5 correct trials in a row (correct = finger lifts off home button after square appears
and presses down on square within 5000ms)

3. Test: 20 trials (default)
- 4 isi (1000ms, 3000, 2000ms, 4000ms), selected randomly
edit list.isiSimpleRT under section Editable Lists

Instructions

provided in script "simplereactiontimetask_touchscreen_instructions_inc.iqjs"

Summary Data

File Name: simplereactiontimetaskTouchscreenSummary*.iqdat

Data Fields

NameDescription
inquisit.version Inquisit version number
computer.platform Device platform: win | mac |ios | android
startDate Date the session was run
startTime Time the session was run
subjectId Participant ID
groupId Group number
sessionId Session number
elapsedTime Session duration in ms
completed 0 = Test was not completed
1 = Test was completed
simpleRTDuration Stores the duration (in ms) of the simple RT task (only test session; excludes demo & practice)
practicePassSimpleRT 0 = participant did not pass practice criteria for simpleRT
1 = participant passed practice criteria for simpleRT
meanRTSimpleRT Mean latency (in ms) of pressing down on stim (latency measured from onset of target to
pressing down on it); only correct responses
accSimpleRT Mean proportion correct (correct = square was hit as opposed to elsewhere or no response)
totalEarlyResponsesSimpleRT Counts premature lift-offs (off homebutton) across all test trials in the simpleRT task
only for responses with finalACC = 1
meanDurationA Mean duration (in ms) btw. onset of target button (stimPresentTime) and lifting finger off home button
meanDurationB Mean duration (in ms) btw taking finger off Home Button and pressing down on Stim Button
meanDurationC Mean duration (in ms) finger spent on Stim Button
meanDurationD Mean duration (in ms) btw taking finger off Stim Button and pressing down again on Home Button
meanDurationHomeButton Mean duration (in ms) finger spent on HomeButton

Raw Data

File Name: simplereactiontimetaskTouchscreenRaw*.iqdat

Data Fields

NameDescription
build Inquisit version number
computer.platform Device platform: win | mac |ios | android
date Date the session was run
time Time the session was run
subject, group, With the current subject/groupnumber
session Session number
blockCode Name of the current block
blockNum Number of the current block
trialCode Name of the current trial
trialNum Number of the current trial
list.practiceCorrect.mean Stores the proportion correct of the last 5 responses during the current practice session
practicePass 0 = participant did not pass practice criteria
1 = participant passed practice criteria
trialCount Counts all trials (trial = current trial sequence) in a block
isi Current interstimulus interval in ms
responseArea Stores the response area clicked
'stim' vs. 'elsewhere' vs. " " (did not respond during response window)
acc 1 = correct/right stimulus,
2 = "elsewhere" i.e. outside the stimulus
3 = no response
finalAcc Stores final correctness of response (1 = correct; 0 = incorrect)
simple Reaction Time Task: correct (1) simply means = participant selected stim
rt Response time (in ms) from onset of Stim until the stim is pressed
(rt is empty if the stim is not pressed)
rtDown1 Script.elapsedTime (in ms) of clicking home-button (measured relative to start of script in ms)
! if finger lifts off home button prior to Stim appearance,
rtDown1 resets to the moment the finger returns to the home button
and isi is restarted from that moment.
rtUp1 Script.elapsedTime (in ms) of lifting finger off home-button (measured relative to start of script in ms)
rt_up1 is measured AFTER Stim appearance
rtDown2 Script.elapsedTime (in ms) of clicking stim-button or 'elsewhere' (measured relative to start of script in ms)
rtUp2 Script.elapsedTime (in ms) of lifting finger off stim-button or 'elsewhere' (measured relative to start of script in ms)
rtDown3 Script.elapsedTime (in ms) of clicking home-button after lifting finger off stim-button (measured relative to start of script in ms)
if participants stays on home button until stim appears
rtDown3 is assigned rtDown1 of the next trial
stimPresentTime Timestamp of target square (measured relative to start of script in ms)
the time (in ms) measured from start of script until the targets appeared on screen
a Time (in ms) btw. onset of target button (stimPresentTime) and lifting finger off home button (rt_up1)
b Time (in ms) btw taking finger off Home Button and pressing down on Stim Button
c Time (in ms) finger spends on Stim Button (pressing down on stimulus to lifting off stimulus)
d Time (in ms) btw taking finger off Stim Button and pressing down again on Home Button
durationHomeButton Time (in ms) finger spent on HomeButton
countEarlyResponses Counts premature lift-offs (off homebutton) during the current trial
totalEarlyResponses Counts premature lift-offs (off homebutton) across all test trials

Parameters

The procedure can be adjusted by setting the following parameters.

NameDescriptionDefault
Design Parameters
numberTestTrials The number of test trials run
needs to be divisible by 4
20
presentFinalRTFeedback True (1): participants receive feedback about their average (correct) reaction time at test termination (default)
false (0): no reaction time feedback is provided at the end
true
Timing Parameters
feedback Feedback duration 3000
homeButtonRW Home button response window until a reminder is flashed onto the screen
the trial continues until the home button is pressed
6000
stimRW Response window after stim is presented 5000
Color Parameter
canvasColor Display color of the actively used portion of the screen (the 'canvas')
if set to a color other than the screenColor, you can distinguish the active canvas
from the inactive portion of the screen
lightGray
screenColor Color of the screen not used by the canvas ('inactive screen')lightGray
defaultTextColor Default color of text itemsblack
boxColor Color of the boxesdarkGray
Sizing Parameters
homeButtonSize The proportional size of the Home Button (relative to canvas) 15%
squareSize The proportional size of the square (relative to canvas) 15%
homeButtonSimpleRTY The vertical position of the homeButton (here:center)50%
stimButtonSimpleRTY The vertical position of the stimButton20%