Return to the Continuous Performance Test page
						
									CONTINUOUS PERFORMANCE TEST (CPT)

SCRIPT INFO

last updated:  01-13-2016 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC
Copyright ©  01-13-2016 Millisecond Software


BACKGROUND INFO

											*Purpose*
This script implements the Continuous Performance Test as described 
in:

Rosvold, H.E., Mirsky, A., Sarason, M., Bransome, E.D., Jr., and Beck, L.H. A Continuous
Performance Test of brain damage. Journal of Consulting Psychology, 20, 343 (1956).

Even numbered  participants are assigned the longer adult version (10 minutes per task). 
Odd numbered participants are assigned the shorter child's version (5 minutes per task).



											  *Task*
Participants get presented a sequence of letters (one-by-one).
Task1: press the Spacebar whenever the letter is an X
Task2: press the Spacebar whenever the letter is an X that follows an A.


DATA FILE INFORMATION: 
The default data stored in the data files are:

(1) Raw data file: 'CPTRosvold_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 (odd -> short version; even -> long version)
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) 

response							the scancode for the key that was pressed (if any)
latency								the response time in milliseconds
correct								whether the response was correct: 1 = correct; 0 = error
values.xtestomissionerrorcount		number of errors when X was presented but no response was given
values.xtestomissionerrorrate		rate of errors when X was presented but no response was given
values.xtestcomissionerrorcount		number of errors when non-X was presented but a response was given
values.xtestcomissionerrorrate		rate of errors when non-X was presented but a response was given
values.axtestomissionerrorcount		number of errors when X or A was presented but no response was given
values.axtestomissionerrorrate		rate of errors when X or A was presented but no response was given
values.axtestcomissionerrorcount	number of errors when non-X and non-A was presented but a response was given
values.axtestcomissionerrorrate		rate of errors when non-X and non-A was presented but a response was given

(2) Summary data file: 'CPTRosvold_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: odd -> short version; even -> long version
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)
values.xtestomissionerrorcount		number of errors when X was presented but no response was given
values.xtestomissionerrorrate		rate of errors when X was presented but no response was given
values.xtestcomissionerrorcount		number of errors when non-X was presented but a response was given
values.xtestcomissionerrorrate		rate of errors when non-X was presented but a response was given
values.axtestomissionerrorcount		number of errors when X or A was presented but no response was given
values.axtestomissionerrorrate		rate of errors when X or A was presented but no response was given
values.axtestcomissionerrorcount	number of errors when non-X and non-A was presented but a response was given
values.axtestcomissionerrorrate		rate of errors when non-X and non-A was presented but a response was given


EXPERIMENTAL SET-UP
long version (even groupnumbers)/short version (odd groupnumbers)
- 20 blocks/10 blocks "X": each block runs 31 letters with 8 targets (order is randomly determined)
letters are presented every 920ms (= Stimulus Onset Asynchrony) with a short posttrialpause of 230ms 
- 20 blocks/10 blocks "AX": each block runs 31 letters with 6 targets (order is randomly determined)
Note: in this script, A is always followed by an X and X never follows any other letter (A is a perfect signal for X in this script)
	
INSTRUCTIONS
see section Editable Instructions

EDITABLE CODE:
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:

/resttime:							the time of the rest duration in ms (default: 120000ms => 2 min)

Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Security Statement | Employment