# Parallel port doesn’t send triggers to EEG

**URL:** <https://discourse.psychopy.org/t/parallel-port-doesn-t-send-triggers-to-eeg/28274>\
**Category:** Coding\
**Tags:** eeg\
**Created:** [March 29, 2022, 10:40am UTC](https://discourse.psychopy.org/t/parallel-port-doesn-t-send-triggers-to-eeg/28274 "2022-03-29T10:40:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imadi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/imadi/32/33564_2.png) [@Imadi](https://discourse.psychopy.org/u/Imadi)\
**Post date:** [March 29, 2022, 10:40am UTC](https://discourse.psychopy.org/t/parallel-port-doesn-t-send-triggers-to-eeg/28274/1 "2022-03-29T10:40:27Z")

</div>

Hello there!

I have problems with the parallel port that doesn’t send triggers from a testing computer to an EEG recorder in different tasks even if they send triggers from another computers. I tried different variations of code though none of them doesn’t work. I can’t find the problem on my own. I tested parallel port in “parallel port tester”, it worked great, also I tried to reinstall inpoutx64 driver, computer said it worked too. Version of psychopy is 2022.1.1, I tried to install earlier one (2020.1.0), unfortunately, it didn’t run.

Code I tried:  
_ **Begin Experiment** _  
from psychopy import parallel  
parallel.setPortAddress(0xE100)

_ **Begin Routine** _  
parallel.setData(9)

OR

Code I tried with using p\_port, not only code:  
_ **Begin Experiment** _  
from psychopy import parallel  
parallel.setPortAddress(0xE100)

_ **Begin Routine** _  
p\_port.setData(9)

_ **the most common error is smth like this:** _  
File “C:\Users\Администратор\Documents\PsychoPy\_exp\exp\_final\_lastrun.py”, line 380, in   
parallel.setData(9)  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\parallel\__init_\_.py”, line 183, in setData  
raise RuntimeError(‘Port address must be set using setPortAddress’)  
RuntimeError: Port address must be set using setPortAddress  
################# Experiment ended with exit code 1 [pid:3328] #################

Thank u a lot! I’m dealing with this for a long time 🙂

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [March 30, 2022, 7:38pm UTC](https://discourse.psychopy.org/t/parallel-port-doesn-t-send-triggers-to-eeg/28274/2 "2022-03-30T19:38:51Z")

</div>

Hi There,

What happens if you try to send a trigger from builders parallel port component? (ensure your port address is in Preferences\> hardware first then it can be detected in the parallel port address options).

Thanks,  
Becca
