# Issue setting pins for parallel port trigger

**URL:** <https://discourse.psychopy.org/t/issue-setting-pins-for-parallel-port-trigger/31451>\
**Category:** Coding\
**Created:** [October 19, 2022, 5:35pm UTC](https://discourse.psychopy.org/t/issue-setting-pins-for-parallel-port-trigger/31451 "2022-10-19T17:35:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mberadi](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mberadi](https://discourse.psychopy.org/u/mberadi)\
**Post date:** [October 19, 2022, 5:35pm UTC](https://discourse.psychopy.org/t/issue-setting-pins-for-parallel-port-trigger/31451/1 "2022-10-19T17:35:00Z")

</div>

**OS** : Win 10  
**PsychoPy version** : 2021.x  
**Standard Standalone?** : yes  
**What are you trying to achieve?** : I am trying to send triggers via a parallel port to BrainRecorder (EEG software). My issue is that I can read the pins but I am unable to set them. I get no errors when running:

from psychopy import parallel

port = parallel.ParallelPort(port\_address)  
port.readPin(2)

I can try to set the pins with:

port.setPin(2,1)

but nothing changes.

**What did you try to make it work?:** I have followed all of the steps found here: [https://discourse.psychopy.org/t/sending-eeg-triggers-to-brain-vision-software/10261](https://discourse.psychopy.org/t/sending-eeg-triggers-to-brain-vision-software/10261). Additionally, I have no issues with sending triggers via Presentation with all the same hardware configurations.

TL;DR I get no errors when trying to set the pins but they do not change.

---

<div class="post-metadata">

**Author:** ![mberadi](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mberadi](https://discourse.psychopy.org/u/mberadi)\
**Post date:** [November 15, 2022, 12:54pm UTC](https://discourse.psychopy.org/t/issue-setting-pins-for-parallel-port-trigger/31451/2 "2022-11-15T12:54:52Z")

</div>

In case someone in the future has the same issue.

This was eventually solved by running the PsychoPy coder with elevated admin privileges. After the first time doing this, it continues to work for all users.

Found the idea here: [[win10] parallel port D010 no write from psychopy (but does w/ Eprime and Presentation)](https://discourse.psychopy.org/t/win10-parallel-port-d010-no-write-from-psychopy-but-does-w-eprime-and-presentation/29605)
