![]() ![]() If eventType=pl.STARTFIX or eventType=pl.FIXUPDATE or eventType=pl. Here is a portion of some code that uses the eyelink's most recent sample in the logic of the experimental program. Here is an example of sending a message from your python program to the eyelink ndMessage("TRIALID "+str(trialnum)) There are a number of built-in variables you can set, or you can add your own. You can talk to the eye tracker and do things like opening a file def eyeTrkOpenEDF (dfn,el):īlockLabel=(expWin,text="Press the space bar to begin drift correction",pos=, color="white", bold=True,alignHoriz="center",height=0.5) sp screen size, and cd is color depth, e.g. Calibrate EyetrackerĮl is the name of the eyetracker object initialized above. Go through the Eyelink forum and get pylink from there. ![]() Also, note that there is another python library called pylink that you can find on line. NB: the pl function comes from import pylink as pl. def eyeTrkInit (sp):Įl.sendCommand("screen_pixel_coords = 0 0 %d %d" %sp)Įl.sendMessage("DISPLAY_COORDS 0 0 %d %d" %sp)Įl.sendCommand("select_parser_configuration 0")Įl.sendCommand("scene_camera_gazemap = NO")Įl.sendCommand("pupil_size_diameter = %s"%("YES")) Sp refers to the tuple of screenx, screeny sizes. We have found it convenient to write some functions for talking to the Eyelink computer. #To set up connection with Eyelink II computer: NB: these commands are being typed into a terminal. Try simply with ip link and look for something similar. Note your ethernet will probably have a different name than enp4s0. If your experimental machine is turned on and plugged into a live Eyelink computer then on linux you have to first set your ethernet card up, and then set the default address that Eyelink uses (this also works for the Eyelink 1000 - they kept the same address). Communication between experimental machine and eye tracker machineįirst, you have to establish communication with the eyelink. If you continue to browse on our website, you give us the permission to add cookies for the. If none of the following makes any sense to you, don't worry about it, but maybe it will help others who are stumbling along the same path we are. Lavoisier use Google Analytics and AT Internet for web analytics. I have not used iohub, but we do use psychopy and an eyelink and therefore some of the following code may be of use to others who wish to invoke more direct communication. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |