How can I use events in my experiment?

The demo "eyelinkeventexample.m" in the directory EyelinkDemos/ShortDemos/ provides an example of how to use events to achieve certain things. In this case it doesn't stop as you want to do, but changes the contrast of a number, but I guess you'll get the picture.

The main commands (you'd probably want to put these in some more elaborate loop):

while 1
evtype = eyelink('getnextdatatype');
if evtype == el.ENDSACC
break;
end
end
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki