A response handler element that records subject response by button press on a Cedrus response pad. At default waits for one press of any button, then records response and ends on its own.
Response values generated are button numbers (1–8). Response times are measured by the pad.
You can also use cedrusPress elements to listen for synchronization signals from an external device like a scanner. To do this set registerTrigger = <cd>true<cd> to register inputs as triggers instead of responses from subject. Most commonly then set syncExperiment = <cd>true<cd> to tell the element to synchronize the experiment at trigger. You can then set the timing of any element in the trial (element properties start/end field t_sync) and/or subsequent trial timing (trial object property start field t_sync) from sync.
If you want to set options for the pad, you can use pb_prefs → "Other" tab. Or to set for only the current experiment, you can add an object of type cedrusPad and set its properties. Typically you don't need to.
Note according to Psychtoolbox documentation, opening a Cedrus pad might be unreliable. If you get an error, it might help to just retry. You can also try reducing the baud rate by setting cedrusPad object property fullBaud = <cd>false<cd>. See http://psychtoolbox.org/docs/CedrusResponseBox.
By default yes, when it records one response. You can change number of responses to wait for in property maxNumResponses. If you set maxNumResponses = <cd>inf<cd>, records responses indefinitely until a condition you set in property end.
"Ends on its own" means ends automatically at that point. If an element can end on its own, you don't need to set end conditions for it in property end (unless you want it to maybe end earlier).
No—runs until any condition you set in property end.
portName
nn_listenButtons
All visual elements
position
depth
nn_eyes
rotation
flipHorz
flipVert
colorMask
alpha
intensity
contrastMult
convolution
shader
filterOrder
filterGrayscale
filterResolutionMult
filterGamma
channelResolution
backColor
addDisplay
All visual elements
position
All adjuster elements have
adjust
All response handler elements
translateResponse
scoreResponse
correctResponse
scoreResponseForStaircase
maxNumResponses
recordDefaultResponse
registerTrigger
autoResponse
autoResponseLatency
All elements
start
end
startBuffer
endBuffer
vary
staircase
All objects
info
report
Default: set port name at the Cedrus pad
If you leave this property at default, set port name at the pad itself instead: Add a cedrusPad object and set its property portName. You could do this if it's more convenient than setting port name in every cedrusPress element. You can also set other options for the pad at the cedrusPad object. (This default doesn't work if you have more than one Cedrus pad in the experiment.)
Default: listen to all buttons
A row vector of button numbers to listen to (1–8).
You can vary or allow the subject to adjust the following properties of an object of this type when it's running. If you need to make other properties adjustable, you can edit the element type code—see Element Type Programming Manual.
position
nn_eyes
rotation
colorMask
alpha
intensity
contrastMult
drawCodeVars
(None)
(None)
PsychBench uses record properties to record information during experiments. You can't set record properties but you can see them in experiment results using input property report.
All response handler elements
response
responseScore
responseTime
responseLatency
d_responseTime
numResponses
All elements
startTime
endTime
duration
n_startFrame
n_endFrame
startLatencyBufferable
endLatencyBufferable