more info
If I just add in the cedrus module into a standard builder view experiment in psychopy then run it, I get the following output:
ERROR could not find a Cedrus device
If instead I create a python script (using the CEDRUS suggested code) and put the following in:
NOTE: I did use the proper indentation - it just doesn’t seem to have come through in the quoted text.
import pyxid
get a list of all attached XID devices
devices = pyxid.get_xid_devices()
devices = pyxid.get_xid_devices() # twice as per suggestion on Cedrus forum
dev = devices[0] # get the first device to use
if dev.is_response_device():
dev.reset_base_timer()
dev.reset_rt_timer()
while True:
dev.poll_for_response()
if dev.response_queue_size() > 0:
response = dev.get_next_response()
# do something with the response
Then I get the following:
####### Running: C:\Users\fmri\Documents\PsychoPy\cedrusTest2
ewtest.py #######
Traceback (most recent call last):
File “C:\Users\fmri\Documents\PsychoPy\cedrusTest2
ewtest.py”, line 6, in <module>
devices = pyxid.get_xid_devices()
File “build\bdist.win32\egg\pyxid_init_.py”, line 19, in get_xid_devices
File “build\bdist.win32\egg\pyxid\pyxid_impl.py”, line 17, in init
File “build\bdist.win32\egg\pyxid\serial_wrapper.py”, line 27, in available_ports
File “build\bdist.win32\egg\pyxid\serial_wrapper.py”, line 72, in available_ports
File “C:\Program Files\PsychoPy2\lib\site-packages\serial\serialwin32.py”, line 31, in init
super(Serial, self).init(*args, **kwargs)
File “C:\Program Files\PsychoPy2\lib\site-packages\serial\serialutil.py”, line 162, in init
self.port = port
File “C:\Program Files\PsychoPy2\lib\site-packages\serial\serialutil.py”, line 206, in port
raise ValueError(‘“port” must be None or a string, not {}’.format(type(port)))
ValueError: “port” must be None or a string, not <type ‘int’>
Please can anyone help with this as I was hoping to use the Lumina with PsychoPy to run an experiment this week - and I’m completely stuck without it.
Best wishes,
Jon