___________________________________________________________________________________________________________________ SIMPLE CARD SORT TEST ___________________________________________________________________________________________________________________ Script Author: Sabrina Goh last updated: 04-06-2023 by K. Borchert (katjab@millisecond.com) for Millisecond Software, LLC Thanks to Sabrina Goh for sharing this script! ___________________________________________________________________________________________________________________ BACKGROUND INFO ___________________________________________________________________________________________________________________ This sample script shows how to implement a simple Wisconsin Card Sorting Test with Inquisit. ___________________________________________________________________________________________________________________ TASK DESCRIPTION ___________________________________________________________________________________________________________________ Participants are asked to sort cards into four different "categories". No instructions are given in regard to the categorization rules. The four different categories are - one red triangle - two green stars - three yellow crosses - four blue circles. The cards to sort into these piles have similar designs and vary in color (4), shape (4), and number (4). ___________________________________________________________________________________________________________________ DURATION ___________________________________________________________________________________________________________________ the default set-up of the script takes appr. 2 minutes to complete ___________________________________________________________________________________________________________________ DATA OUTPUT DICTIONARY ___________________________________________________________________________________________________________________ The fields in the data files are: (1) Raw data file: 'cardsorttest_raw*.iqdat' (a separate file for each participant) build: The specific Inquisit version used (the 'build') that was run computer.platform: the platform the script was run on (win/mac/ios/android) date, time: date and time script was run subject, group, with the current subject/groupnumber session: with the current session id blockCode, blockNum: the name and number of the current block (built-in Inquisit variable) trialCode, trialNum: the name and number of the currently recorded trial (built-in Inquisit variable) Note: trialNum is a built-in Inquisit variable; it counts all trials run; even those that do not store data to the data file such as feedback trials. Thus, trialNum may not reflect the number of main trials run per block. stimulusItem: the presented target card response: the participant's response (selected card category) correct: the correctness of the response (1 = correct; 0 = otherwise) latency: the response latency (in ms) (2) Summary data file: 'cardsorttest_summary*.iqdat' (a separate file for each participant) inquisit.version: Inquisit version run computer.platform: the platform the script was run on (win/mac/ios/android) startDate: date script was run startTime: time script was started subjectId: assigned subject id number groupId: assigned group id number sessionId: assigned session id number elapsedTime: time it took to run script (in ms); measured from onset to offset of script completed: 0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run) ___________________________________________________________________________________________________________________ INSTRUCTIONS ___________________________________________________________________________________________________________________ can be edited under 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: /csTotalTrials: Maximum Number of trials (default = 128) /csTotalBlocks: Maximum Number each category is tested (default = 2) /correctStreakThreshold: Number of consecutive correct responses before a rule change (default = 4) /picSize: size of cards determined by canvas height percentage (default:30%)