Lab Streaming Layer plugin (receive pupil data in MATLAB)

384 views
Skip to first unread message

Tommaso Banfi

unread,
Jan 10, 2017, 10:03:14 AM1/10/17
to pupil-discuss

Dear all,

I'm trying to stream Pupil data to MATLAB using labstreminglayer. I receive an error when I try to load the lsl relay plugin, in MATLAB I receive a 1x7 vector containing zeros and a timestamp, e.g.

0.00    0.00    0.00    0.00    0.00    0.00    0.00    20688.07911

This is what i've done so far:
I'm running the latest version of pupil capture (v0.8.7-w-20) on a Windows 10 machine, using MATLAB r2016b and the v1.11 of labstreaming layer

1) installed pupil capture and followed the instruction found here ( https://github.com/sccn/labstreaminglayer/tree/master/Apps/PupilLabs ) to add the lsl plugin to pupil capture
2) disabled windows firewall

3) launch the lsl relay plugin from pupil capture, receiving:

world - [DEBUG] pupil_lsl_relay: Connecting to b'tcp://127.0.0.1:63160'...
world - [ERROR] pupil_lsl_relay: Error during relaying data to LSL. Unloading the plugin...
world - [DEBUG] pupil_lsl_relay: Error details: name 'xrange' is not defined
world - [DEBUG] pupil_lsl_relay: Shutting down background thread...

3) launched the lsl app PupilPro.exe (found here ftp://sccn.ucsd.edu/pub/software/LSL/Apps/PupilPro-1.11.zip ) and set the address port and fps (127.0.0.1, variable port number e.g 63160, 30 fps)
4) launched lsl in MATLAB using the script (pupil_rece_lsl.m) you can find attached

Also attached you can find an example (track_pupil.txt) of the data displayed in the command prompt of the lsl PupilPro app


Thanks in advance =)

Tommaso
pupil_rece_lsl.m
track_pupil.txt

Pupil Labs Info

unread,
Jan 10, 2017, 10:12:05 AM1/10/17
to pupil-...@googlegroups.com
Hi,

only looking at this: 

'0.00    0.00    0.00    0.00    0.00    0.00    0.00    20688.07911'

this is not wrong in itself. I m guessing you are not wearing the headset so the values including confidence are 0.


The error is because the plugin is not python3 compatible. replacing xrange with range might fix it though.
Best,

Moritz

--
You received this message because you are subscribed to the Google Groups "pupil-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pupil-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pupil-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pupil-discuss/96ccc512-c8f1-402e-a24d-485359fb4a83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pupil Labs
research + development + design

Tommaso Banfi

unread,
Jan 10, 2017, 10:29:39 AM1/10/17
to pupil-discuss

Hi,
thanks!

I changed xrange with range solving the error, but I still get only zeros in MATLAB. I was wearing the headset this time and also during the past attempts. Both times with very high (
~0.9) confidence levels displayed in the world window.

Reply all
Reply to author
Forward
0 new messages