esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
670 stars 211 forks source link

Eyetracker calibrate sets wrong area size #135

Closed EmmaDelhaye closed 4 years ago

EmmaDelhaye commented 4 years ago

Hi,

I'm new at using PyGaze and I'm trying to use a SMI RED 500 eyetracker. The communication between my task and the eyetracker works fine but it looks like it always sets the calibration area size to (0, 0).

Here are the commands sent to iView:

ET_CSZ 0 0
ET_CPA 2 1
ET_CPA 3 1
ET_CSZ 0 0

But the resolution set for the eyetracker is (1680, 1050). I tried to send these commands manually but ET_CAL 9 is never sent...

Do you have any idea on how to fix this? I can't find any way to provide parameters to Eyetracker.calibrate().

Best, Emma

esdalmaijer commented 4 years ago

Hi Emma,

According to the iViewX documentation, the command ET_CSZ sets the calibration area size. You're passing 0 as the width and 0 as the height in your command ET_CSZ 0 0. Shouldn't that be ET_CSZ 1680 1050?

PS: Relevant documentation link (PDF!) http://tsgdoc.socsci.ru.nl/images/6/6f/IViewX.pdf

Cheers, Edwin

EmmaDelhaye commented 4 years ago

Hi,

Thank you for your answer! Yes I tried that solution but it didn't work; OpenSesame systematically sent the ET_CSZ 0 0 command to iView X. Good news is that I found the solution to the problem by changing my DVI connecting cable to a VGA connecting cable to the Stimulus-display screen. Now everything works fine.

Thanks again for taking the time to read me & answer! Best, Emma

esdalmaijer commented 4 years ago

To be honest, I'm still unsure what's actually causing the (0,0) resolution to be set... Glad that you found a solution, though! :)