Psychopy Unable to Connect with StimTracker

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Mac OS Big Sur
PsychoPy version (e.g. 1.84.x): 2022.1.4
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?: We try to connect Psychopy with the stimtracker, use Psychopy to present stimuli, and send event markers to the stimtracker to record the onset times of our stimuli.

What did you try to make it work?:
We have downloaded and installed the USB driver on this website (D2XX Drivers - FTDI) in the Mac’s terminal, following the instruction in the Readme file.

What specifically went wrong when you tried that?:
We run the sample code from Cedrus on this website (https://cedrus.com/support/c-pod/psychopy_pyxid_test.py) in the coder, and we keep receive the error message below. Whenever we run that sample code, the light B under Code blinks (Please see the attached photo). It seems that we can sort of connect Psychopy with Stimtracker, but we are getting this error:

sychoPy3!

v2022.1.4

Running: /Users/admin/Downloads/Jonahs LDT files/psychopy_pyxid_test.py

[<XidDevice “Cedrus StimTracker Quad”>]

Running: /Users/admin/Downloads/Jonahs LDT files/psychopy_pyxid_test.py

Traceback (most recent call last):

File “/Users/admin/Downloads/Jonahs LDT files/psychopy_pyxid_test.py”, line 9, in

dev = devices[0]# get the first device to use

IndexError: list index out of range

################# Experiment ended with exit code 1 [pid:2420] #################

Could you please help us with this?

Thank you so much!

Best regards,
Samuel

Hello,

Did you ever find a fix to this? We have currently ran into the same problem and was wondering if you ever sorted it.

Hello, so we managed to get this working again. This bit of code

import pyxid2
import time

# get a list of all attached XID devices
devices = pyxid2.get_xid_devices()

dev = devices[0] # get the first device to use

Should be by itself in “Begin Experiment”. Once we moved it to there the issue went away.