Sending triggers to brainvision EEG system from Psychopy coderview

Hi,
For my MEG experiment the script sends trigger without problems. Though I’m not familiar with brain vision EEG system, maybe my setup for the parallel port could help?
Put both inpout32.dll and inpoutx64.dll in the project folder (so that you don’t have to worry about the version of PsychoPy). So the folder structure looks like:

├── constants.py
├── experiment.py
├── inpout32.dll
└── inpoutx64.dll

psychopy.parallel worked for me, so my script looks like:

# setup the port
port = parallel.ParallelPort(0x3FF8)  # don't quote it
# set all pins low before experiment
port.setData(0)

# run the experimnt
for trial in trials:
    # send trigger
    port.setData(1)
    # keep sending the trigger for a bit
    core.wait(0.003)
    # reset the port
    port.setData(0)

    # do something...

Hope that helps!