PennController.Footer( sequenceOfCommands ) (since beta 0.3) Will append sequenceOfCommands to the end of the sequence of commands of each trial created with PennController. Example: [js highlight=”1-7″ try=”data”]Footer( newText(“validation instructions”, “Click to go to next trial”) .print() , newButton(“validation button”, “Validate”) .print() .wait() ); newTrial( newText(“test sentence”, “The cat chases the mouse”) .print() , newScale(“natural”, 5) …
Wiki Category Archives:
PennController.FeedItems
Deprecated since version 1.0. See .
PennController.DownloadRecordingButton
PennController.DownloadRecordingButton( text ) (since PennController 1.8) formerly PennController.DownloadVoiceButton( text ), now deprecated Generates a <button> that, when clicked, proposes to download a ZIP archive containing all the media recordings collected during the experiment. This should be used only after the recordings have been sent to the server you specified as described on . You would …
PennController.CheckPreloaded
PennController.CheckPreloaded() or PennController.CheckPreloaded( labels ) or PennController.CheckPreloaded( delay ) or PennController.CheckPreloaded( labels , delay ) PennController always starts the preloading of every image, audio and video resource used in your experiment as soon as the experiment starts running and, by default, it will wait before running a trial that all the resources it uses are …
PennController.AddTable
PennController.AddTable( name, csv_string ) You can use this command to manually define a table to use with . You normally do not need to use this command since, as of PennController beta 0.4, you can directly upload your CSV file under Resources / chunk_includes. Example: [js highlight=”1-5″ try=”data”] AddTable( “myTable”, // Name of the table …
PennController.AddHost
PennController.AddHost( url ) You can use AddHost to spare you from specifying a URL when you create an element with newAudio, newVideo or newImage. The URL must end with /. You can pass multiple URL strings (separated by comma) or use AddHost as many times as you want. If you do so, PennController will try …
PennController().setOption
PennController().setOption(option, value) (since beta 0.3) or newTrial().setOption(option, value) since 1.7 Lets you modify a parameter of the controller, as you would for any other controller in Ibex. This can be helpful if you want to override some default settings, such as countsForProgressBar which is used by Ibex. Example: [js highlight=”7″ try=”data”] newTrial( newScale(“Score”, 8) .settings.slider() …
PennController().noHeader
PennController().noHeader() (since beta 0.3) or newTrial().noHeader() since 1.7 Will not run the header sequence at the beginning of the trial. Note that this also concerns default commands defined in the header: those will not be run in trials where you use noHeader. Example: [js highlight=”26″ try=”data”]Header( defaultButton .print() .wait() , newText(“please”, “Please give a score”) …
PennController().noFooter
PennController().noFooter() (since beta 0.3) or newTrial().noFooter() since 1.7 Will not run the footer sequence at the end of the trial. Example: [js highlight=”20″ try=”data”]Footer( newButton(“validate”, “Got it!”) .print() .wait() ); newTrial( “with footer” , newScale(“score”, 5) .settings.before( newText(“left”,”Score:”) ) .print() .wait() ); newTrial( “without footer” , newScale(“score”, 5) .settings.before( newText(“left”,”Score:”) ) .print() .wait() ) .noFooter(); …
PennController().logAppend
PennController().logAppend( name, value ) (replaced with log since beta 0.3)