WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-07-2014, 05:04 AM
chris2307 chris2307 is offline
Member
 
Join Date: Nov 2013
Posts: 36
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()
However, I now get a black screen SDL application which is separate from the Vizard application. Nothing happens and all keyboard input is blocked so I tab out of it and return the experiment where I can hit escape.

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:06 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC