up Inquisit Language Reference

slidertrial element

The slidertrial element is a specialized trial element for gathering ratings using a slider are input.

Attributes

<sliderTrial name>
/ buttonLabel = string
/ defaultResponse = text
/ defaultResponse = integer
/ defaultResponse = expression

/ handleScale = factor
/ handleScale = expression

/ increment = increment
/ increment = expression

/ labels = (label, label, label, ...)
/ orientation = layout
/ range = (min, max)
/ range = (minexpression, maxexpression)

/ required = boolean
/ required = expression

/ showTicks = boolean
/ txColor = colorname
/ txColor = expression

/ fontStyle = (name, height, bold, italic, underline, strikeout, quality, characterset)
/ navigationButtonFontStyle = (name, height, bold, italic, underline, strikeout, quality, characterset)
/ position = (x, y)
/ position = (xexpression, yexpression)

/ responseFontStyle = (name, height, bold, italic, underline, strikeout, quality, characterset)
/ size = (width, height)
/ size = (widthexpression, heightexpression)

/ beginResponseFrame = integer
/ beginResponseFrame = expression

/ beginResponseTime = integer
/ beginResponseTime = value

/ correctResponse = (character, character,...)
/ correctResponse = (scancode, scancode, ...)
/ correctResponse = (anyResponse, noResponse, ...)
/ correctResponse = (stimulusname, stimulusname, ...)
/ correctResponse = (mouseevent, mouseevent, ...)
/ correctResponse = (gamepadstickevent, gamepadevent, ...)
/ correctResponse = (joystickevent, joystickevent, ...)
/ correctResponse = (word, word, ...)
/ correctResponse = (response)
/ correctResponse = (expression, expression, ...)

/ draw = stimulusname
/ dropSources = (stimulus, stimulus, expression, expression, ...)
/ dropTargets = (stimulus, stimulus, expression, expression, ...)
/ inputMask = mask
/ isCorrectResponse = { script }
/ isValidResponse = { script }
/ monkeyResponse = (character, character,...)
/ monkeyResponse = (scancode, scancode, ...)
/ monkeyResponse = (anyResponse, noResponse, ...)
/ monkeyResponse = (stimulusname, stimulusname, ...)
/ monkeyResponse = (mouseevent, mouseevent, ...)
/ monkeyResponse = (gamepadevent, gamepadevent, ...)
/ monkeyResponse = (joystickevent, joystickevent, ...)
/ monkeyResponse = (word, word, ...)
/ monkeyResponse = (keyword)
/ monkeyResponse = (expression, expression, ...)

/ postTrialPause = integer
/ postTrialPause = expression

/ postTrialSignal = (modality, signal)
/ postTrialSignal = (mouse, stimulusname)
/ postTrialSignal = (mouse, mouseevent)

/ preTrialPause = integer
/ preTrialPause = expression

/ preTrialSignal = (modality, signal)
/ preTrialSignal = (mouse, stimulusname)
/ preTrialSignal = (mouse, mouseevent)

/ responseInterrupt = mode
/ responseMessage = bool(responsevalue, stimulusname, duration)
/ responseMessage = (responsevalue, stimulusname, duration)

/ stimulusFrames = [framenumber = stimulusname, stimulusname, ...; framenumber = stimulusname, ...]
/ stimulusFrames = [framenumber = listname]
/ stimulusFrames = [framenumber = selectMode(stimulusname, stimulusname, stimulusname, ...)]

/ stimulusTimes = [time = stimulusname, stimulusname, ...; time = stimulusname, ...]
/ stimulusTimes = [time = listname]
/ stimulusTimes = [time = selectMode(stimulusname, stimulusname, stimulusname, ...)]

/ stop = { script }
/ trialDuration = integer
/ trialDuration = expression

/ undoDraw = { script }
/ validResponse = (character, character,...)
/ validResponse = (scancode, scancode, ...)
/ validResponse = (anyResponse, noResponse, ...)
/ validResponse = (stimulusname, stimulusname, ...)
/ validResponse = (mouseevent, mouseevent, ...)
/ validResponse = (gamepadevent, gamepadevent, ...)
/ validResponse = (joystickevent, joystickevent, ...)
/ validResponse = (word, word, ...)
/ validResponse = (keyword)
/ validResponse = (expression, expression, ...)

/ branch = { script }
/ correctMessage = true(stimulusname, duration)
/ correctMessage = false

/ dataStreams = (datastream, eyetracker)
/ dataStreams = false

/ errorMessage = true(stimulusname, duration)
/ errorMessage = false

/ onTrialBegin = { script }
/ onTrialEnd = { script }
/ photoCapture = boolean
/ quit = { script }
/ recordData = option
/ response = responsename
/ response = timeout(milliseconds)
/ response = window(center, width, stimulusname)
/ response = responsemode

/ screenCapture = boolean
/ showMouseCursor = boolean
/ skip = { script }
/ soundCapture = boolean
/ stop = { script }
/ timeout = integer
/ timeout = expression

</sliderTrial>

Properties

sliderTrial.name.buttonLabel
sliderTrial.name.defaultResponse
sliderTrial.name.increment
sliderTrial.name.maxValue
sliderTrial.name.minValue
sliderTrial.name.required
sliderTrial.name.responseFontHeight
sliderTrial.name.showTicks
sliderTrial.name.fontHeight
sliderTrial.name.height
sliderTrial.name.heightPct
sliderTrial.name.heightPx
sliderTrial.name.hPosition
sliderTrial.name.vPosition
sliderTrial.name.width
sliderTrial.name.widthPct
sliderTrial.name.widthPx
sliderTrial.name.x
sliderTrial.name.xPct
sliderTrial.name.xPx
sliderTrial.name.y
sliderTrial.name.yPct
sliderTrial.name.yPx
sliderTrial.name.altLatency
sliderTrial.name.beginResponseFrame
sliderTrial.name.beginResponseTime
sliderTrial.name.inputMask
sliderTrial.name.lastDropLatency
sliderTrial.name.lastDropSource
sliderTrial.name.lastDropTarget
sliderTrial.name.postTrialPause
sliderTrial.name.preTrialPause
sliderTrial.name.trialCode
sliderTrial.name.trialDuration
sliderTrial.name.correct
sliderTrial.name.correctCount
sliderTrial.name.correctStreak
sliderTrial.name.count
sliderTrial.name.elapsedTime
sliderTrial.name.error
sliderTrial.name.errorCount
sliderTrial.name.errorStreak
sliderTrial.name.inWindow
sliderTrial.name.inWindowCount
sliderTrial.name.inWindowStreak
sliderTrial.name.lastPhotoCapturePath
sliderTrial.name.lastScreenCapturePath
sliderTrial.name.lastSoundCapturePath
sliderTrial.name.latency
sliderTrial.name.maxLatency
sliderTrial.name.meanLatency
sliderTrial.name.medianLatency
sliderTrial.name.minLatency
sliderTrial.name.notInWindow
sliderTrial.name.notInWindowCount
sliderTrial.name.notInWindowStreak
sliderTrial.name.percentCorrect
sliderTrial.name.photoCapture
sliderTrial.name.recordData
sliderTrial.name.response
sliderTrial.name.responseMonitor
sliderTrial.name.responseText
sliderTrial.name.responseX
sliderTrial.name.responseY
sliderTrial.name.screenCapture
sliderTrial.name.sdLatency
sliderTrial.name.showMouseCursor
sliderTrial.name.soundCapture
sliderTrial.name.sumLatency
sliderTrial.name.timeout
sliderTrial.name.timestamp
sliderTrial.name.totalCorrectCount
sliderTrial.name.totalCount
sliderTrial.name.totalErrorCount
sliderTrial.name.totalMaxLatency
sliderTrial.name.totalMeanLatency
sliderTrial.name.totalMedianLatency
sliderTrial.name.totalMinLatency
sliderTrial.name.totalNumCorrect
sliderTrial.name.totalPercentCorrect
sliderTrial.name.totalSDLatency
sliderTrial.name.totalSumLatency
sliderTrial.name.totalTrialCount
sliderTrial.name.totalVarLatency
sliderTrial.name.trialCount
sliderTrial.name.varLatency
sliderTrial.name.windowCenter
sliderTrial.name.windowDecThreshold
sliderTrial.name.windowDecUnit
sliderTrial.name.windowHitDuration
sliderTrial.name.windowIncThreshold
sliderTrial.name.windowIncUnit
sliderTrial.name.windowMaxCenter
sliderTrial.name.windowMinCenter
sliderTrial.name.windowOffset
sliderTrial.name.windowOnset
sliderTrial.name.windowWidth
sliderTrial.name.name
sliderTrial.name.typeName

Functions

sliderTrial.name.clearStimulusFrames
sliderTrial.name.insertStimulusFrame
sliderTrial.name.insertStimulusTime
sliderTrial.name.removeStimulusFrame
sliderTrial.name.removeStimulusTime
sliderTrial.name.resetStimulusFrames
sliderTrial.name.setStimulusFrame
sliderTrial.name.setStimulusTime
sliderTrial.name.stimulusFrame
sliderTrial.name.stimulusTime

Remarks

The slidertrial element controls the timing and the content of stimulus presentation as well as how responses are obtained. Every time a slidertrial element is executed, a line of data is written to the raw data file.

The respondent can advance past this trial by placing the slider and hitting ENTER or clicking the response button if response input is set to mouse.

Examples

The following sliderTrial defines a 10-interval sliding scale with the two anchors 'not at all' and 'extrememly'. The width of the scale is set to 50% of the canvas width.

<sliderTrial mySlider>
/ labels = ("not at all", "extremely")
/ buttonLabel = "submit"
/ increment = 10
/ size = (50%,null)
</sliderTrial>

Copyright Millisecond Software, LLC. All rights reserved.