pupil-helpers
pupil-helpers copied to clipboard
Online Fixation data acquisition
Hello, I would like to use Matlab to get Online Fixation data in the Pupil Capture, what parts should I modify in the code.
I tried to change gaze in filter_messages.m to fixation, but I failed
Changing the subscription topic is the correct approach. What type of error did you receive?
We changed the topic, but we got no results and no errors in MATLAB.
Make sure that 1.) you have calibrated (in this case you should be receiving gaze after subscribing to gaze), and that 2.) the online fixation detector is running. Go to the Pupil Capture Plugin Manager menu to enable the plugin.
Please also try increasing the buffer size here https://github.com/pupil-labs/pupil-helpers/blob/master/matlab/filter_messages.m#L68
Thank you very much. Let's try it first.
Hello, we have increased the buffer size and also made sure that the online fixation detector is running. But we still didn't succeed.We can only get the gaze data without fixation data. Attach our code for you to view. fixation problem.txt
Hi, please change the subscription prefix from fixation. to fixations. The fixation topic does not follow the same naming convention as the gaze data.
Also, you should not subscribe to gaze if you only process 20 messages. Since gaze is estimated at a high frequency, it is unlikely that you will receive a fixation within these 20 messages if you are also subscribed to gaze.
I don't need gaze data, I just want to get the fixation data. So I just need to change fixation to fixations, right?
These are the recommended changes:
- zmq.core.setsockopt(sub_socket, 'ZMQ_SUBSCRIBE', 'gaze.');
- zmq.core.setsockopt(sub_socket, 'ZMQ_SUBSCRIBE', 'fixation.');%added myself,have a problem, no data
+ zmq.core.setsockopt(sub_socket, 'ZMQ_SUBSCRIBE', 'fixations');%added myself,have a problem, no data
Be aware of the removal of the trailing .. Subscriptions are prefix-based. In other words, you will receive all messages whose topics start with the subscription string. Since the fixation topics do not contain a ., you were not able to receive any fixations.
Ok, thank you very much! Let's try it first.