eyetracker.stop

getEyeTracker(id).stop() (since PennController 1.8)

Stops tracking which element is being looked at.

The EyeTracker element will stop collecting and sending data points to your PHP script after stop is executed.

Example:

[js highlight=”11″ try=”data”]newTrial( newButton(“Start”).print().wait(newEyeTracker().test.ready()) )

newTrial(
newEyeTracker(“tracker”).calibrate(70)
,
newText(“Left”).css(“padding”,”20vw”).print(“20vw”, “40vh”),
newText(“Right”).css(“padding”,”20vw”).print(“60vw”, “40vh”)
,
getEyeTracker(“tracker”).add( getText(“Left”) , getText(“Right”) ).showFeedback().start()
,
newTimer(1000).callback( getEyeTracker(“tracker”).stop() ).start()
,
newSelector().add( getText(“Left”) , getText(“Right”) ).wait()
)[/js]

Will stop tracking looks after 1 second.

Published by Jeremy

Researcher in semantics and pragmatics; Programmer of PennController for IBEX