timer.stop

getTimer(id).stop() (since version 1.1) Stops the timer early. Nothing happens if the timer has already elapsed. When timers are stopped early, the script proceeds in the same way as if they had elapsed on their own: any command associated to the timer is executed and any command on the timer is resolved. [js highlight=”8″ try=”true”] …

PennController().label

PennController().label( name ) (since PennController 1.1) or newTrial().label( name ) since PennController 1.7 This is another way to assign a label to a PennController trial so you can refer to it in . It is most useful called on or since those commands do not take labels as arguments. Example: [js highlight=”1,7″] Sequence( “practice” , …

standard.refresh

getElement(id).refresh() (since PennController 1.1) Calls the command again on the element, while leaving it where it was printed last. This command is primarily useful if some aesthetic command does not take effect unless print is called afterward, but you do not want to call print because calling it when you need the aesthetic command to …

PennController.Template

(PennController.FeedItems has become deprecated since version 1.0) Template( row => PennController() ) or Template( row => [“controllername”, options, “controllername”, options, …] ) or Template( row => [“label”, “controllername”, options, “controllername”, options, …] ) (since PennController 1.4) or Template( table, row => … ) (where … is any of the continuations above) Generates trials from a …

PennController.ResetPrefix

PennController.ResetPrefix( “prefix” ) or PennController.ResetPrefix( null ) By default, all the commands to create and refer back to elements in a PennController trial should be preceded by a prefix (PennController.Elements. as of beta 0.3). It is standard practice that every command added by a javascript module (which is what PennController is) uses a specific prefix …