Get Track Box

% This feature has been deprecated, will no longer retrieve the track_box and will be removed in a future release.
% get_track_box() will return error 1001 (TOBII_RESEARCH_DEPRECATED)
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


track_box = eyetracker.get_track_box();
% track_box == 'GetTrackBox:error1001'