# Parallel Port Builder View

**URL:** <https://discourse.psychopy.org/t/parallel-port-builder-view/4288>\
**Category:** Coding\
**Created:** [April 6, 2018, 1:03am UTC](https://discourse.psychopy.org/t/parallel-port-builder-view/4288 "2018-04-06T01:03:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SabrinaSghirripa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/sabrinasghirripa/32/4448_2.png) [@SabrinaSghirripa](https://discourse.psychopy.org/u/SabrinaSghirripa)\
**Post date:** [April 6, 2018, 1:03am UTC](https://discourse.psychopy.org/t/parallel-port-builder-view/4288/1 "2018-04-06T01:03:26Z")

</div>

Hi all,

I’m having some issues with the parallel port option in builder view. I’m running Linux Mint, and while I can get PsychoPy to send triggers if there is one p\_port added, if subsequent p\_ports are added in the builder view I run into an error message:

‘Attribute error : "Parallel instance has no attribute’

I was wondering if anyone knew how to get subsequent triggers working in the experiment as I would like EEG triggers at multiple times throughout the routine. It’s as if the port is not ‘closing’ and allowing subsequent access.

Thanks,

Sabrina

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [April 6, 2018, 1:06am UTC](https://discourse.psychopy.org/t/parallel-port-builder-view/4288/2 "2018-04-06T01:06:17Z")

</div>

Is there more to that error message?

---

<div class="post-metadata">

**Author:** ![SabrinaSghirripa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/sabrinasghirripa/32/4448_2.png) [@SabrinaSghirripa](https://discourse.psychopy.org/u/SabrinaSghirripa)\
**Post date:** [April 6, 2018, 1:11am UTC](https://discourse.psychopy.org/t/parallel-port-builder-view/4288/3 "2018-04-06T01:11:17Z")

</div>

[[Album] imgur.com ![](https://i.imgur.com/9e41Irc.jpeg?fb "imgur.com") ](https://imgur.com/a/bCWh0)

---

<div class="post-metadata">

**Author:** ![ssolis](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@ssolis](https://discourse.psychopy.org/u/ssolis)\
**Post date:** [April 13, 2018, 11:08am UTC](https://discourse.psychopy.org/t/parallel-port-builder-view/4288/4 "2018-04-13T11:08:46Z")

</div>

I had some error using the Parallel Port at the beginning. I can’t remember if I have your same messages. I never made it work in builder view, only in code. And I was working with Windows, so I guess it will be different. But, checking on the screen you have and my code, I think you haven’t specified the actual address of the ports your are using. I also installed a proper controller for the parallel port.

Check on my code to see if this work for you. I used it to read the trigger and activate the task sequence.

```auto
    # parallel port trigger activation
    from psychopy import parallel
    port = parallel.ParallelPort(address=0x0378)
    port.setData(4)
    port.readPin(2)
    port.setPin(2, 1)
    while parallel.ParallelPort(address=0x0378).readPin(15) == 0:
        pass
    if parallel.ParallelPort(address=0x0378).readPin(15) == 1:
        break

```
