The block element defines a sequence of trials and instruction pages to be run.
block.name.currentBlockNumber
block.name.currentTrialNumber
block.name.screenColor
block.name.screenColorBlue
block.name.screenColorGreen
block.name.screenColorRed
block.name.trialsCount
block.name.correct
block.name.correctCount
block.name.correctStreak
block.name.count
block.name.elapsedTime
block.name.error
block.name.errorCount
block.name.errorStreak
block.name.inWindow
block.name.inWindowCount
block.name.inWindowStreak
block.name.lastPhotoCapturePath
block.name.lastScreenCapturePath
block.name.lastSoundCapturePath
block.name.latency
block.name.maxLatency
block.name.meanLatency
block.name.medianLatency
block.name.minLatency
block.name.notInWindow
block.name.notInWindowCount
block.name.notInWindowStreak
block.name.percentCorrect
block.name.photoCapture
block.name.recordData
block.name.response
block.name.responseMonitor
block.name.responseText
block.name.responseX
block.name.responseY
block.name.screenCapture
block.name.sdLatency
block.name.showMouseCursor
block.name.soundCapture
block.name.sumLatency
block.name.timeout
block.name.timestamp
block.name.totalCorrectCount
block.name.totalCount
block.name.totalErrorCount
block.name.totalMaxLatency
block.name.totalMeanLatency
block.name.totalMedianLatency
block.name.totalMinLatency
block.name.totalNumCorrect
block.name.totalPercentCorrect
block.name.totalSDLatency
block.name.totalSumLatency
block.name.totalTrialCount
block.name.totalVarLatency
block.name.trialCount
block.name.varLatency
block.name.windowCenter
block.name.windowDecThreshold
block.name.windowDecUnit
block.name.windowHitDuration
block.name.windowIncThreshold
block.name.windowIncUnit
block.name.windowMaxCenter
block.name.windowMinCenter
block.name.windowOffset
block.name.windowOnset
block.name.windowWidth
block.name.name
block.name.typeName
None.
The primary function of the block element is to define a randomly selected or sequentially ordered set of trials to run. The block element also controls whether instructions are provided at the beginning and end of the block, and whether summary performance feedback (average latency, percent correct) is given at the block's conclusion.
By default, all random selection pools for trials and stimulus items are reset at the end of a block. For example, if any stimulus items are selected without replacement (the default selection algorithm), all of the stimuli are replaced into the selection pool after each block is finished. To preserve selection pools across multiple blocks, use the resetInterval attribute.
The following block runs ten trials, randomly selecting trial1 and trial2 for five trials each. The block also presents two background stimuli.
<block myBlock>
/ trials=[1-10=noreplace(trial1, trial2)]
/ bgstim=(remindertext, instructiontext)
</block>
The following block runs ten trials, selecting trial1 for the first five and trial2 for the second five. Three instruction pages are displayed before and after the trials are run.
<block myBlock>
/ trials=[1-5=trial1; 6-10=trial2]
/ preInstructions=(page1, page2, page3)
/ postInstructions=(page4, page5, page6)
</block>