Home › Forums › Software Development › Setting up a Tobii X120 on Windows 10 PC using C# SDK › Reply To: Setting up a Tobii X120 on Windows 10 PC using C# SDK
Is your tracker a Tobii X3-120 (with USB connection or Ethernet via an EPU) or is to a Tobii X120 (network tracker)? Using Tobii X3-120 requires the installation of a driver, and that driver can be installed using Tobii Eyetracker Manager.
Once you have the driver installed, the following simple console application code (.net6) should find your eyetracker and subscribe to gaze data.
var eyeTracker = Tobii.Research.EyeTrackingOperations.FindAllEyeTrackers().First();
eyeTracker.GazeDataReceived += (_, args) =>
{
Console.WriteLine($”{args.SystemTimeStamp}: “+
$”x={args.LeftEye.GazePoint.PositionOnDisplayArea.X} “+
$”y={args.LeftEye.GazePoint.PositionOnDisplayArea.X}”);
};
Thread.Sleep(TimeSpan.FromSeconds(5));