# Serial Port EEGbiosemi

**URL:** <https://discourse.psychopy.org/t/serial-port-eegbiosemi/23020>\
**Category:** Builder\
**Created:** [May 16, 2021, 4:33pm UTC](https://discourse.psychopy.org/t/serial-port-eegbiosemi/23020 "2021-05-16T16:33:11Z")\
**Posts on this page:** 1\
**Showing post:** 28

<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:** [May 26, 2021, 7:57am UTC](https://discourse.psychopy.org/t/serial-port-eegbiosemi/23020/28 "2021-05-26T07:57:34Z")

</div>

interesting - OK to worst comes to worst triggers can be posthoc labelled with their corresponding condition in the analysis - but I know that is not what we want ideally.

Looking on the actiview support site I see that someone had a similar issue and they fixed it using the a write byte approach rather than a write integer method [Trigger Codes Missing Sporadically - BioSemi.nl](https://www.biosemi.nl/forum/viewtopic.php?t=1351)

In this post @Michael translates a trigger code to bytes [Sending markers to EEG through serial port - #2 by Michael](https://discourse.psychopy.org/t/sending-markers-to-eeg-through-serial-port/5311/2) could we try that?

So it would be something like:

```auto
port.write(trigger.to_bytes(length = 1, byteorder = 'little')) 

```

---

_[View the full topic](https://discourse.psychopy.org/t/serial-port-eegbiosemi/23020)._
