Download Pylink api userguide

Transcript
Table of Contents
1.
1.1
1.2
2.
2.1
2.2
3.
INTRODUCTION .................................................................................................................................1
ORGANIZATION OF THIS DOCUMENT ....................................................................................................1
GETTING STARTED ...............................................................................................................................1
EYELINK PROGRAMMING CONVENTIONS...............................................................................2
OUTLINE OF A TYPICAL WINDOWS EXPERIMENT ..................................................................................2
STANDARD MESSAGES .........................................................................................................................3
OVERVIEW OF PYLINK MODULE.................................................................................................4
3.1
CLASSES IN PYLINK MODULE ...............................................................................................................4
3.2
PYLINK MODULE FUNCTIONS ...............................................................................................................5
3.2.1
alert .............................................................................................................................................5
3.2.2
beginRealTimeMode....................................................................................................................5
3.2.3
closeGraphics..............................................................................................................................5
3.2.4
currentDoubleUsec .....................................................................................................................6
3.2.5
currentTime .................................................................................................................................6
3.2.6
currentUsec .................................................................................................................................6
3.2.7
endRealTimeMode.......................................................................................................................6
3.2.8
flushGetkeyQueue........................................................................................................................7
3.2.9
getDisplayInformation.................................................................................................................7
3.2.10 msecDelay ...................................................................................................................................7
3.2.11 openGraphics ..............................................................................................................................7
3.2.12 pumpDelay ..................................................................................................................................8
3.2.13 SetCalibrationColors...................................................................................................................8
3.2.14 SetCalibrationSounds..................................................................................................................8
3.2.15 setCameraPosition ......................................................................................................................9
3.2.16 setDriftCorrectSounds.................................................................................................................9
3.2.17 setTargetSize ...............................................................................................................................9
3.3
EYELINKLISTENER CLASS ..................................................................................................................10
3.3.1
abort ..........................................................................................................................................10
3.3.2
acceptTrigger ............................................................................................................................10
3.3.3
applyDriftCorrect ......................................................................................................................10
3.3.4
breakPressed .............................................................................................................................11
3.3.5
broadcastOpen ..........................................................................................................................11
3.3.6
close...........................................................................................................................................11
3.3.7
closeDataFile ............................................................................................................................12
3.3.8
commandResult .........................................................................................................................12
3.3.9
dataSwitch .................................................................................................................................12
3.3.10 doDriftCorrect...........................................................................................................................12
3.3.11 doTrackerSetup .........................................................................................................................13
3.3.12 drawCalTarget ..........................................................................................................................13
3.3.13 echo_key ....................................................................................................................................13
3.3.14 escapePressed ...........................................................................................................................13
3.3.15 exitCalibration...........................................................................................................................14
3.3.16 eyeAvailable ..............................................................................................................................14
3.3.17 flushKeybuttons .........................................................................................................................14
3.3.18 getButtonStates..........................................................................................................................15
3.3.19 getCalibrationMessage..............................................................................................................15
3.3.20 getCalibrationResult .................................................................................................................15
3.3.21 getCurrentMode ........................................................................................................................15
3.3.22 getDataCount ............................................................................................................................16
3.3.23 getEventDataFlags....................................................................................................................16
Windows EyeLink Programming (11/1/2003) 2002 SR Research Ltd.
ii