# How to send Serial data received to a text window?

**URL:** <https://forum.inductiveautomation.com/t/how-to-send-serial-data-received-to-a-text-window/60617>\
**Category:** Ignition\
**Tags:** ignition81, scripting, vision\
**Created:** [June 10, 2022, 2:26pm UTC](https://forum.inductiveautomation.com/t/how-to-send-serial-data-received-to-a-text-window/60617 "2022-06-10T14:26:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 10, 2022, 2:41pm UTC](https://forum.inductiveautomation.com/t/how-to-send-serial-data-received-to-a-text-window/60617/3 "2022-06-10T14:41:03Z")

</div>

Start here:

> [@How to listen serial data without interruption](https://forum.inductiveautomation.com/t/how-to-listen-serial-data-without-interruption/15709):
>
> I am using serial module to get data from a rs232 device, and the device is could only send its data to serial port ,but could not accept any request. the problem is I don’t know when the data will be send,so I need to listen the serial constantly to avoid lose any data. but unfortunately, there are no any event trigger on serial component in ignition . dose anyone meet the same problem and could give some help? (I’m using ignition 7.7.5) I put scripts on a timer , but datas always los…

The key is that a script that is going to block reading from the serial port (even briefly) must be run in a background thread. Data to deliver to your UI must use `system.util.invokeLater()` to delegate snippets of code back on the UI thread.

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-send-serial-data-received-to-a-text-window/60617)._
