Sending EEG Triggers in Windows 10
I've been working on an experiment using open sesame that needs to be able to send triggers to some EEG recording software on a seperate PC (running windows XP). I had this working on our old lab PC (windows 7) without any issues, using the dlportio.dll file and python inline scripting. However, we have just switched the lab PC to windows 10, and now this doesn't work anymore. I have reinstalled the dlportio.dll file and open sesame seems to recognise this, as it does not throw any exceptions when initiating. It also does not notify me that it failed to send any triggers. I have read that this would normally mean that the IO port address is incorrect, however I have run through all the port addresses my computer lists for the IO connection, but nothing seems to work. Has anyone else had this problem and happens to know a fix?
For reference, the IO port range for my connection is DFF4-DFFFF and the python code I am using is this:
To initiate the trigger sending:
try: from ctypes import windll global io io = windll.dlportio except: print 'The parallell port couldn\'t be opened' exp.set('delay',0)
and to send the trigger (there is another similar one to reset the trigger):
resp = exp.get('response_resp_p') if resp == ('space'): exp.set('trig',1) else: exp.set('trig',0) global io trigqu = self.get("trig") port = 0x378 try: io.DlPortWritePortUchar(port, trigqu) except: print 'Failed to send trigger!' exp.set('delay',50)
Thanks for your help,