The experiment object is optional. You only need to add one if you want to change a property from default. Note you can also change the default values themselves using pb_prefs at the MATLAB command line, which may be more convenient.
An object of type experiment provides some options and record properties for a whole experiment. An experiment can only have one experiment object. You can add columns setting properties for it in the optional table for objects not specific to trial (experiment, device, staircase objects). [Or in the coding method: Make an experiment object outside trials using function experimentObject, set properties, and input it to addToExperiment.]
showOpening
backColor
showFrameworkMessages
priority
All objects
info
report
Default, changeable in pb_prefs: show opening display and prompt to start
showOpening = <cd>true<cd>/<cd>false<cd>: show opening display and prompt to press Space to start. <cd>false<cd> = open the experiment with a black screen and start it immediately when ready.
Default, changeable in pb_prefs: black
A 1×3 RGB vector with numbers between 0–1 setting background color for the experiment. You can override this for a given trial using trial object property backColor or for a given pretrial interval using preTrialBackColor. You can also override this for any part of a trial using a backColor element.
Default, changeable in pb_prefs: current Psychtoolbox settings (Psychtoolbox default: 3 = standard messages)
<cd>0 <cd> – minimal
<cd>1 <cd> – add error messages
<cd>2 <cd> – add warnings
<cd>3 <cd> – add standard messages
<cd>4 <cd> – add extra messages
This goes to Psychtoolbox Screen('Preference', 'Verbosity') and similar commands.
<cd>[]<cd> (default) = current Psychtoolbox settings. Psychtoolbox defaults in turn are generally 3 (standard messages). If you leave showFrameworkMessages at default, you can also use the corresponding Psychtoolbox commands directly before the experiment.
Default, changeable in pb_prefs: current Psychtoolbox setting (Psychtoolbox default: 0 = lowest priority, highest compatibility)
<cd>[]<cd> (default) = current Psychtoolbox setting. Psychtoolbox default in turn is 0 (lowest priority, highest compatibility). If you leave priority at default, you can also use the Psychtoolbox command directly before the experiment.
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.
Experiment duration from trial 1 start to last trial end (sec).