% initialize connection
[success, connection] = eyetribe_init('test');
% start recording
success = eyetribe_start_recording(connection);
% log something
success = eyetribe_log(connection, 'TEST_START');
% get a few samples
for i = 1:60
pause(0.0334)
[succes, x, y] = eyetribe_sample(connection);
[succes, size] = eyetribe_pupil_size(connection);
disp(['x=' num2str(x) ', y=' num2str(y) ', s=' num2str(size)])
end
% log something
success = eyetribe_log(connection, 'TEST_STOP');
% stop recording
success = eyetribe_stop_recording(connection);
% close connection
succes = eyetribe_close(connection);