Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Controller element

Test commands

description

Embeds an Ibex controller.

syntax

newController(ELEMENT_NAME: string, CONTROLLER: string, KEY_VALUE_PAIRS: array)
  • ELEMENT_NAME: The name of the newly-created element.
  • CONTROLLER : The inserted Ibex controller.
  • KEY_VALUE_PAIRS : An array of key-value pairs; see each individual Ibex controller for details.

note(s)

The currently supported Ibex controllers are:

  • AcceptabilityJudgment: makes it straightforward to present a sentence together with a rating scale; it is a combination of the FlashSentence and Message controllers - press above to see more information
  • DashedAcceptabilityJudgment: like AcceptabilityJudgment, but it uses DashedSentence instead of FlashSentence; this is useful for running speeded acceptability judgment tasks (which otherwise require some rather creative use of shuffle sequences) - press above to see more information
  • DashedSentence: sentence is displayed as a sequence of dashes - press above to see more information
  • FlashSentence: sentence is displayed for a certain defined period - press above to see more information
  • Form collects data from an HTML form presented to the participant - press above to see more information
  • Message: message is displayed to user, and it is usually calling for the action - press above to see more information
  • Question: question is displayed to user, and it is usually calling for the action - press above to see more information
  • Separator”: controls if the previous item was completed - press above to see more infomration
  • VBox: makes it possible to combine multiple controllers to form a single controller - press above to see more information

since

PennController 1.7

example(s)


$newController("DashedSentence", {s: "This is an example sentence."} )
@   .print()
@   .log()
@   .wait()
@   .remove()

Action commands

controller.log

syntax

.log()

description

Logs the time when controller is envoked

example

click to expand

@newController("DashedSentence", {s: "The mouse is happy"} )
@   .print()
$   .log()
=======
@newController("DashedSentence", {s: "The mouse that the cat that the dog is petting is hugging is happy"} )
@   .print()
@   .log()
@   .wait()
@   .remove()
↑ back to top

controller.wait

syntax

.wait()

description

Waits until the controller has been completed.

example

click to expand

@newButton("Start reading")
@    .print()
@    .wait()
@    .remove()
@,
@newController("DashedSentence", {s: "The mouse is happy"} )
@    .print()
@    .log()
$    .wait()
@    .remove()
@,
@newText("Good job!")
@    .print()
↑ back to top


Test commands