![]() |
|
#4
|
|||
|
|||
Okay, so I figured out why nothing was happening on the screen. I had missed out some code which should have been in my driftCorrection() function:
Code:
def driftCorrection(): pylink.openGraphics((_display_width, _display_height)) pylink.setCalibrationColors((255, 255, 255), (0, 0, 0)) #Sets the calibration target and background color pylink.setTargetSize(int(_display_width / 70.0), int(_display_width / 300.0)); pylink.setCalibrationSounds("", "", ""); pylink.setDriftCorrectSounds("", "off", "off"); print "Called: Drift Correction" pylink.getEYELINK().doDriftCorrect(960, 540, 0, 0) pylink.closeGraphics() In the Vizard output box, I get the following error: pylink.openGraphics((_display_width, _display_height)) RuntimeError: Could not initalize graphics Unfortunately, this isn't helping me much because I run the exact same line of code when calling the calibration routine before the experiment. |
|
|