How to integrate Tobii with psychopy

OS (e.g. Win10): Win11
PsychoPy version (e.g. 1.84.x): 2023.2.3
Standard Standalone? (y/n) Yes
What are you trying to achieve?:
Hi guys, it might be a board question but I am so struggling with to integrate Tobii spectrum with Psychopy. The software I am using to record is Tobii Pro Lab. I am a completely new beginner in terms of coding and eye tracking. Is there anyone who’s willing to share how they integrate Tobii with psychopy? Thanks in advance.

I triedTitta, but I got error message like this:

Running: C:\Program Files\PsychoPy\Titta-master\demo_experiment\breakout_tobii.py

pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Hello from the pygame community. Contribute - pygame wiki
{‘Enter your name’: ‘demo’, ‘Device’: ‘Eye tracker’}
[300.0, 150.0, 120.0, 60.0] 600
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\Titta-master\demo_experiment\breakout_tobii.py”, line 68, in
tracker.init()
File “C:\Program Files\PsychoPy\lib\site-packages\titta\Tobii.py”, line 190, in init
self.set_sample_rate(self.settings.SAMPLING_RATE)
File “C:\Program Files\PsychoPy\lib\site-packages\titta\Tobii.py”, line 2087, in set_sample_rate
assert np.any([int(i) == Fs for i in self.tracker.get_all_gaze_output_frequencies()]), “Supported frequencies are: {}”.format(self.tracker.get_all_gaze_output_frequencies())
AssertionError: Supported frequencies are: (300.0, 150.0, 120.0, 60.0)
################ Experiment ended with exit code 1 [pid:13788] #################

Hi! A late answer: You need to change the sampling frequency in the script breakout_tobii.py.
settings.SAMPLING_RATE = 300

You’re trying to use a frequency of 600 Hz, but only 300, 150, 120, and 60 Hz are supported by your Spectrum.