EyeTrackingOperations
Provides static methods for searching for eye trackers as well as connecting directly to a specific eye tracker. The eye tracker object(s) returned can then be used to manipulate the eye trackers and read eye tracker data. This is the entry point for the SDK users.
Contents
Tobii = EyeTrackingOperations()
Get System Time Stamp
Retrieves the time stamp from the system clock in microseconds.
Returns: int64 time stamp in microseconds
%% Get System Time Stamp
Tobii = EyeTrackingOperations();
time_stamp_us = Tobii.get_system_time_stamp();
Get SDK Version
Retrieves the current version of the SDK.
Returns: string with version of the sdk
%% Get SDK Version Tobii = EyeTrackingOperations(); version = Tobii.get_sdk_version(); disp(['Current SDK Version: ',version])
Find All Eye Trackers
Finds eye trackers connected to the computer or the network. Please note that subsequent calls to find_all_eyetrackers() may return the eye trackers in a different order.
Returns: array with instances of the class EyeTracker
%% Find All EyeTrackers clear; Tobii = EyeTrackingOperations(); eyetrackers = Tobii.find_all_eyetrackers(); for i=1:size(eyetrackers) disp(['Address:',eyetrackers(i).Address]) disp(['Name:',eyetrackers(i).Name]) disp(['Serial Number:',eyetrackers(i).SerialNumber]) disp(['Model:',eyetrackers(i).Model]) disp(['Firmware Version:',eyetrackers(i).FirmwareVersion]) disp(['Runtime Version:',eyetrackers(i).RuntimeVersion]) fprintf('\n') end
GetEyeTracker
Gets an eye tracker object that has the specified adress.
Parameters: string with address of the desired eye tracker. Returns: instance of the class EyeTracker
%% Get EyeTracker clear; Tobii = EyeTrackingOperations(); eyetracker_address = 'Address of the desired device'; % Example: % eyetracker_address = 'tet-tcp://10.46.32.51'; try eyetracker = Tobii.get_eyetracker(eyetracker_address); catch ME if (strcmp(ME.identifier,'EyeTrackerGet:error204')) fprintf('Unable to connect eye tracker.\n'); return end end disp(['Address:',eyetracker.Address]) disp(['Name:',eyetracker.Name]) disp(['Serial Number:',eyetracker.SerialNumber]) disp(['Model:',eyetracker.Model]) disp(['Firmware Version:',eyetracker.FirmwareVersion]) disp(['Runtime Version:',eyetracker.RuntimeVersion])
See Also
Version
1.10.1.24
COPYRIGHT 2022 - PROPERTY OF TOBII PRO AB Copyright 2022 TOBII PRO AB - KARLSROVAGEN 2D, DANDERYD 182 53, SWEDEN - All Rights Reserved.
Copyright NOTICE: All information contained herein is, and remains, the property of Tobii Pro AB and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to Tobii Pro AB and its suppliers and may be covered by U.S.and Foreign Patents, patent applications, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Tobii Pro AB.