Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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:

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,

Martin

Comments

  • I also got the same problem, but I am using windows 7. Also try to use trigger, using the dlportio.dll file and python inline scripting but no response

  • You can download a newer driver from here:

    http://www.highrez.co.uk/Downloads/InpOut32

    And then initialize it through:

    io = windll.LoadLibrary( 'inpout32.dll')
    

    (don't forget to add the correct path to 'inpout32.dll')

  • Hi everyone!

    I'm having the same problem mentioned by @martinholding here: we switched the lab PC to windows 10, and now I can't send triggers via the parallel port anymore.

    I followed the instructions that I found in this documentation to install DLPortIO, even if they refer to Windows 7: https://osdoc.cogsci.nl/3.2/manual/devices/parallel/
    In particular, when I installed the program "Digital Signature Enforcement Overrider" (DSEO) following the instructions and enabling the test mode, I restaed the PC and noticed that the voice "Windows test mode built #number#" didn't appear on my desktop. Plus, when I run my script to send triggers via the parallel port, it seems that the trigger is sent, but nothig actually happens.

    Can anyone help mewith this iussue? Is it possible that I need to install a more recent version of DLPortIO or of the program DSEO?

    Thanks!

Sign In or Register to comment.