up Inquisit Language Reference

columns attribute

The columns attribute specifies which data columns to record to the data file.

Member of

<data> <dataStream>

Syntax

/ columns = (columnname, columnname, columnname, property, property, property)

Parameters

Name Type Description
columnname datacolumnenum
ValueDescription
blockCodeThe Name of the current block
blockNumThe current block number.
blockTimeoutThe current block timeout value in milliseconds.
buildThe Inquisit release version.
correct1 if the response was correct, 0 if it was an error.
correctCountThe number of correct responses in the current block.
correctStreakThe number of consecutive correct responses in the current block.
dateThe current date.
error1 if the response was an error, 0 if it was correct.
errorCountThe number of error responses in the current block.
errorStreakThe number of consecutive error responses in the current block.
groupThe group id.
inWindow1 if the response was in the window, 0 if it was not.
latencyThe response time in milliseconds.
maxLatencyThe longest response time in the current block.
meanLatencyThe average response time in the current block.
medianLatencyThe median response time in the current block.
minLatencyThe shortest response time in the current block.
percentCorrectThe percent of correct responses in the current block.
posttrialPauseThe postrialpause value for the current trial.
pretrialPauseThe pretrialPause value for the current trial.
responseThe response for the current trial.
responseMonitorThe number of the monitor of the last mouse response in the current block.
responseTextThe response as text for the current trial.
responseXThe vertical coordinate in pixels of the last mouse response in the current block.
responseYThe horizontal coordinate in pixels of the last mouse response in the current block.
sdLatencyThe standard deviation of response times in the current block.
sessionThe session number.
stimulusThe stimulus item presented on the current trial (same as stimulusItem).
stimulusItemThe stimulus item presented on the current trial.
stimulusNumberThe index of the stimulus item presented on the current trial.
stimulusOnsetThe onset of the stimulus presented on the current trial.
subjectThe participant identifier.
sumLatencyThe sum of response times in the current block.
timeThe current time.
totalCorrectCountThe total number correct responses in the experiment.
totalErrorCountThe total number of error responses in the experiment.
totalMaxLatencyThe longest response time in the experiment.
totalMeanLatencyThe average response time in the experiment.
totalMedianLatencyThe media response time in the experiment.
totalMinLatencyThe shortest response time in the experiment.
totalPercentCorrectThe percent of correct responses in the experiment.
totalSDLatencyThe standard deviation of response times in the experiment.
totalSumLatencyThe sum of response times in the experiment.
totalVarLatencyThe variance of response times in the experiment.
trialCodeThe name of the current trial.
trialDurationThe duration of the current trial.
trialNumThe current trial number.
trialTimeoutThe current trial timeout in milliseconds.
property value Any property of any element may be listed as a data column.

Remarks

The columns attribute specifies the data values to be recorded to file and the column in which they are written. There are three types of columns that can be listed: 1) a reserved keyword representing a particular data value, and 2) any property of any element defined in the script. The data values may be specified in any order. On each trial, Inquisit will write a single line of data consisting of each data value specified by the column. Columns will appear in the data file in the specified order.

Stimulusnumber, stimulusItem, and stimulusOnset receive special treatment.

The first stimulusnumber specified in the columns attribute indicates that the item number of the first stimulus appearing on the current trial should be recorded. The second stimulusnumber indicates that the item number of the second stimulus presented on the trial should be recorded, and so on. If no 1st, 2nd, 3rd, etc. stimulus is presented on a given trial, a '0' is recorded.

Similarly, the first stimulusItem specified in the columns attribute indicates that the actual item presented by the first stimulus appearing on the current trial should be recorded. If the stimulus is <text> or <port>, the actual item is recorded. If the stimulus is a <sound>, <picture>, or <video>, the item’s fileName is recorded. If the stimulus is a <shape>, the name of the shape is recorded. Like stimulusnumber, each successive stimulusItem records the item from each successive stimulus presented on the trial. If no 1st, 2nd, 3rd, etc. stimulus is presented on a given trial, a '0' is recorded.

Similarly, the first stimulusOnset specified in the columns attribute indicates that the onset time of the first stimulus appearing on the current trial should be recorded. Like stimulusnumber, each successive stimulusOnset records the onset time for each successive stimulus presented on the trial. If no 1st, 2nd, 3rd, etc. stimulus is presented on a given trial, a '0' is recorded.

Examples

The following records 10 columns to the data file:

<data>
/ columns=(group, subject, computer.ipAddress, blockcode, trialcode, trialnum, latency, response, stimulusItem, stimulusItem, values.totalearnings, values.dprime, script.elapsedTime)
</data>

Copyright Millisecond Software, LLC. All rights reserved.