Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

Sending EEG Triggers in Windows 10

Hi everyone!

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:

    from ctypes import windll
    global io
    io = windll.dlportio 

    print 'The parallell port couldn\'t be opened' 


and to send the trigger (there is another similar one to reset the trigger):

resp = exp.get('response_resp_p')
if resp == ('space'):

global io
trigqu = self.get("trig")
port = 0x378
    io.DlPortWritePortUchar(port, trigqu)
    print 'Failed to send trigger!'


Thanks for your help,


Sign In or Register to comment.