Return to the Visual Letter Number Sequencing Test page

Script Author: Katja Borchert, Ph.D. ( for Millisecond Software, LLC
Date: 03-31-2016
last updated: 03-13-2019 by K.Borchert ( for Millisecond Software LLC

Script Copyright © 03-13-2019 Millisecond Software


This script implements a computerized version of a Letter-Number-Sequencing Test similarly to the 
one used in the Wechsler Adult Intelligence Scale (WAIS).
This script presents randomly generated letter-number sequences visually and accepts written input.

Participants receive growing series of alternating letters and digits (set sizes: 2-8). 
In this script, the sequences always start with a letter.
2 Recall Conditions:											  
LNS-Forward: Participants have to recall the letters and digits in the order presented
LNS-Reordered: Participants have to recall first the digits from smallest to largest and then the letters in alphabetical order	  

The default data stored in the data files are:

(1) Raw data file: 'MSLetterNumberSequencingTest_visual_raw*.iqdat' (a separate file for each participant)

build:							Inquisit build
computer.platform:				the platform the script was run on
date, time, subject, group:		date and time script was run with the current subject/groupnumber 
blockcode, blocknum:			the name and number of the current block
trialcode, trialnum: 			the name and number of the currently recorded trial
									(Note: not all trials that are run might record data; by default data is collected unless /recorddata = false is set for a particular trial/block) 
/setSize:						number of stimuli in the current sequence (2-8)
/attempt:						number of attempts at a given set size (max. 3)
/presentedSequence:				stores the presented sequence of letters and numbers
/length:						length of presented stimuli (debug check)
/correctResponse:				stores the correct response
response:						the participant's response
/response:						stores the response after 'cleanup' (after removal of possible empty spaces, comas or semicolons; lower case letters are converted to upper case letters)
correct:						the correctness of the response (1 = correct; 0 = incorrect)
/setACC:						1 = at least one correct response for the current set size; 0 = otherwise
latency: 						the response latency (in ms)
/TotalPoints_LNF:				sums up all the points for condition LNF
/TotalPoints_LNR:				sums up all the points for condition LNR
/totalPoints:					combined total points across the two tasks

(2) Summary data file: 'MSLetterNumberSequencingTest_visual_summary*.iqdat' (a separate file for each participant)

script.startdate:				date script was run
script.starttime:				time script was started
script.subjectid:				subject id number
script.groupid:					group id number
script.elapsedtime:				time it took to run script (in ms)
computer.platform:				the platform the script was run on
/completed:						0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)
/maxSetSize_LNF:				stores the last successful set size for condition LNF
/maxSetSize_LNR:				stores the last successful set size for condition LNR
/TotalPoints_LNF:				sums up all the points for condition LNF
/TotalPoints_LNR:				sums up all the points for condition LNR
/totalPoints:					combined total points across the two tasks

* 2 conditions: LNF, LNR: order is counterbalanced (determined by groupnumber).
odd groupnumbers: LNF -> LNR
even groupnumbers: LNR -> LNF
By default, each condition runs one practice/demo trial with 4 characters and receives performance feedback (practice set size can be edited).

* Set Sizes tested: 2-8 stimuli; every stim is presented for 1000ms (editable parameter)
* 3 trials at each level (1 point per correct response for a maximum of 21)
* needs to get at least 1 correct to advance to next set size

letters: all 26 letters of the English alphabet (change selection under section Editable Stimuli)
digits: 1-9 (change under section Editable Stimuli) Note: 0 was excluded due to its resemblance with 'O'

The size of the letters can be set under section Editable Parameters.

Sequence Generation: 
* the letters and digits are randomly drawn for each sequence (no repeats)
* letters and digits alternate and sequences always start with a letter

Instructions are provided by Millisecond Software. They can be edited under section "Instructions"

check below for (relatively) easily editable parameters, stimuli, instructions etc. 
Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.

The parameters you can change are:

/stimDuration:			the presentation duration (in ms) of each stimulus (default: 1000ms)
/stimSize:				the stim Size in canvas height percentages (default: 10%)
/SRI:					the interval (in ms) between offset of last stim and onset of recall textbox (default: 1000ms)
/ITI:					intertrial interval (in ms); time btw. last response and onset of next sequence (default: 1000ms)
/practiceSetSize:		the setSize used for demo/practice trial (default: 4)

Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Privacy Statement | Security Statement | GDPR
Website Security Test