# Sending triggers to brainvision EEG system from Psychopy coderview

**URL:** https://discourse.psychopy.org/t/sending-triggers-to-brainvision-eeg-system-from-psychopy-coderview/11011
**Category:** Coding
**Created:** [February 14, 2020, 7:12pm UTC](https://discourse.psychopy.org/t/sending-triggers-to-brainvision-eeg-system-from-psychopy-coderview/11011 "2020-02-14T19:12:00Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![yh-luo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/yh-luo/32/2098_2.png) [@yh-luo](https://discourse.psychopy.org/u/yh-luo)
#### Post date: [February 26, 2020, 7:13am UTC](https://discourse.psychopy.org/t/sending-triggers-to-brainvision-eeg-system-from-psychopy-coderview/11011/9 "2020-02-26T07:13:43Z")

</div>

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:

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

```

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

```python
# 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!

---

_[View the full topic](https://discourse.psychopy.org/t/sending-triggers-to-brainvision-eeg-system-from-psychopy-coderview/11011)._
