[visionegg] Re: closing visionegg for eyetracker calibration

Dear Mason,

I don't have a quick-and-easy answer for you. As far as I can tell, the Vision Egg is doing the right thing and calling the proper pygame (SDL) functions to close the window. Perhaps also try calling pygame.quit() after you've closed the Vision Egg window. I've entered the following into an interactive Python session:

from VisionEgg.Core import *
s = Screen()
s.close()
s = Screen()
s.close()

and it runs fine, opening and closing windows as expected.

There is some possiblity that perhaps the version of pygame/SDL you are using has a bug in the window-closing code.

Also, I suppose there is some possibility that, if you're on Windows, pygame uses one version of SDL.dll, while the Eyelink system uses a different version.

If you try running from the command line, do you see any more useful error messages?

Cheers!
Andrew

Mason R Smith wrote:

We're trying to use VisionEgg with the Eyelink eyetracker. For certain operations (calibration, drift correction, initial setup of the eyetracker) Eyelink needs to display graphics on the screen (fixation points or video images of the eye). When these operations occur at the beginning of the program before any VisionEgg stimuli have been put on the screen, it works fine. If some stimuli have been presented, and then we want to go back and do recalibration, Eyelink can't get control of the display back to display its fixation points. It goes into calibration mode, but nothing comes on the screen. I tried inserting the line "screen.close()" before the part of the code that is supposed to give control of the display to Eyelink and start calibration. If I do this, then when Eyelink goes into calibration mode and tries to draw to the display, it makes Python crash. Eyelink support told me that "the VisionEgg was not closed properly when you exit the OpenGL graphics so that you can do calibration and other eyelink graphic operations, which are based on SDL graphics," and suggested I ask VisionEgg about it. So, how do I close VisionEgg to allow Eyelink to display graphics? Hopefully this is a simple thing to do, but I can't find it in the docs or the mailing list.
Thanks,
--Mason
---------------------------------------------------------------
Mason Smith
Research Associate, Rick Lewis Lab
University of Michigan, Department of Psychology
525 E. University, Ann Arbor, MI 48109-1109
Lab: East Hall, Room B380 Phone: (734) 764-6827
Fax: (734) 763-7480 Email: masonrs@xxxxxxxxx <mailto:masonrs@xxxxxxxxx>



-- Andrew D. Straw Post-doctoral scholar ,-. Dickinson Lab \_/ California Institute of Technology 8||} Mailcode 138-78 / \ Pasadena CA 91125, USA `-^ email: astraw@xxxxxxxxxxx office: +1 626 395 5828


====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html

Other related posts: