Controller elements let you inject native-Ibex controllers into a PennController trial.
If you log the element, the first two controller-specific columns will be saved as Parameter and Value, and any additional column will be appended to the end of the results line as a new column. For example, DashedSentence will fill the Parameter column with its s parameter and the Value column with the index of the current word—the word itself, the reading time and the linebreak flag will be appended as extra columns.
Creation:
newController("DashedSentence", {s: "Hello World"} )
(since PennController 1.7)
See the Ibex manual for how to use Ibex controllers.
Example:
[js try=”true”]newButton(“Start reading”)
.print()
.wait()
.remove()
,
newController(“DashedSentence”, {s: “The mouse that the cat that the dog is petting is hugging is happy”} )
.print()
.log()
.wait()
.remove()
,
newText(“Good job!”)
.print()
[/js]
Commands
[yadawiki-list category=”NonTest command,Controller element”]
Tests
[yadawiki-list category=”Test command,Controller element”]
Index
- Tutorial
- Commands by element categories
- Standard Element Commands
- Audio element
- Button element
- Canvas element
- DropDown element
- EyeTracker element
- Function element
- Html element
- Image element
- Key element
- MediaRecorder element
- Scale element
- Selector element
- Text element
- TextInput element
- Timer element
- Tooltip element
- Var element
- Video element
- Youtube element
- Special clear command
- Special end command
- Global PennController Commands
- PennController
- PennController.AddHost
- PennController.AddTable
- PennController.CheckPreloaded
- PennController.Debug
- PennController.DownloadVoiceButton
- PennController.FeedItems
- PennController.Footer
- PennController.GetTable
- PennController.GetURLParameter
- PennController.Header
- PennController.InitiateRecorder
- PennController.PreloadZip
- PennController.ResetPrefix
- PennController.SendResults
- PennController.Sequence
- PennController.SetCounter
- PennController.Template
- Installing PennController
- Ontology
- Aesthetics
- Preloading resources
- ZIPped resources
- Spreadsheet (CSV)
- Canvas creation
- Setup for audio recordings collection