![]() 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. It is the online counterpart of the PsychoPy Python library. 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: AttributeError: collections.OrderedDict object has no attribute repeatlab February 16, 2023, 4:26pm 1 Hello, I am currently trying to get a Psychopy script to run. 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. You can examine lastappload. 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). Errors raised during initialization due to unhandled exceptions with respect to the GUI application are usually fatal. To synchronize time between Pupil Capture and PsychoPy, the integration estimates the offset between their clocks and applies it to the incoming data. Communication between experimental machine and eye tracker machineįirst, you have to establish communication with the eyelink. 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. ![]() 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 |