Live Pupil Size Data
I'm using a Tobii eyetracker and would like to use live pupil size data.
I'm now doing this by setting a new variable to the pupil size like this:
var.ps = eyetracker.pupil_size()
I then print this variable in a sketchpad. However, when I run this, I get the error 'variable 'ps' doesn't exist'. To solve this, I initialized the variable ps to be 0 at the beginning of my experiment. Now, 'ps' is always 0. Why doesn't it update to the live pupil size?
I've also tried taking the pupil size at different time intervals and calculating the average, or only taking the pupil size if it's not -1 (and thus invalid), but neither of these methods are working. Any help would be appreciated!