getVideo(id).settings.disable() or getVideo(id).settings.disable(opacity) (since PennController 1.6) Will disable the controls interface. Note that some browsers might make the controls disappear altogether. If you pass no parameter, a 50% opaque layer will be printed on top of the interface. You can pass a value from 0.01 (fully transparent***) to 1 (fully opaque) to control the aspect …
Post Type Archives: Wiki Pages
audio.settings.disable
getAudio(id).settings.disable() or getAudio(id).settings.disable(opacity) (since PennController 1.6) Will disable the controls interface. Note that some browsers might be render disabled interfaces as a plain gray rectangle with no controls visible whatsoever. If you pass no parameter, a 50% opaque layer will be printed on top of the interface. You can pass a value from 0.01 (fully …
scale.unselect
getScale(id).unselect() (since PennController 1.6) Will unselect the option currently selected. If the scale is a slider, it will set it back to the central value. Example: [js highlight=”5″ try=”true”]newScale(“score”, 10) .print() , newButton(“Unselect”) .settings.callback( getScale(“score”).unselect() ) .print()[/js] Prints a 10-point radio button scale and a button reading Unselect which, when clicked, unselects the currently selected …
dropdown.settings.once
getDropDown(id).settings.once() (since PennController 1.5) Will disable the DropDown element after selection occurs. Example: [js highlight=”2″ try=”true”]newText(“I saw Erika talk to Nate.”) .settings.after( newDropDown(“”).settings.add(“He”,”She”).settings.once() ) .settings.after( newText(“seemed anxious.”) ) .print()[/js] Prints I saw Erika talk to Nate. ___ seemed nervous onto the page, where ___ is a drop-down list containing the options He and She. The …
dropdown.settings.callback
getDropDown(id).settings.callback( command ) (since PennController 1.5) or getDropDown(id).settings.callback( command1, command2 ) (since PennController 1.5) Will execute the command(s) whenever an option is selected from the drop-down list. Example: [js highlight=”7-18″ try=”true”]newText(“The weather is”) .settings.after( newDropDown(“temp”,”…”).settings.add(“cold”,”warm”,”hot”) ) .settings.after( newText(“implicature”, “implies that the weather is …”) ) .print() , getDropDown(“temp”) .settings.callback( getDropDown(“temp”) .test.selected(“warm”).success( getText(“implicature”).settings.text(“implicates that the weather …
PennController.DebugOff
PennController.DebugOff() (since PennController 1.4) Tells your experiment to not run in Debug mode. This will close the popin window at the bottom-right corner of your experiment, no longer providing you with debugging tools and helpful feedback. You should only use this command when you are ready to collect data. Check the tutorial for a rapid …
text.unfold
getText(id).unfold( delay ) (since PennController 1.3) Unfolds the text in delay milliseconds. Example: [js highlight=”2″ try=”true”]newText(“Hello world”) .unfold( 3000 ) , newTimer(3000) .start() .wait()[/js] Starts unfolding the text “Hello world” in 3s (which is very slow for only two words) and immediately starts a 3s timer and waits until it ends.
Data analysis in R
this page assumes that you are already familiar with R Starting with a clean slate You probably tested your experiment at multiple steps along the way, at which your were recording different pieces of information in the results file. Now that you have a final design, scroll down to Results to delete the files results …
Timers & Randomization
Adding Timers & Delays When you tried out the experiment, you probably noticed that the trials came in rapid sequence without any pauses between them, with picture selection (or end of audio) marking the end of the trial, followed by an immediate transition to the next trial. It would probably be a good idea to …
Data collection basics
Collecting data PennController automatically logs when a trial starts and when it ends, but you have to explicitly tell it what other information you want to collect. In our case, we are interested in what is captured by the key element. PennController has a command that logs element-related events: .log. All we need to do …