# system.serial.readLine

**URL:** <https://forum.inductiveautomation.com/t/system-serial-readline/9101>\
**Category:** General Discussion\
**Created:** [September 25, 2014, 7:23pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101 "2014-09-25T19:23:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pstojakovic](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pstojakovic](https://forum.inductiveautomation.com/u/pstojakovic)\
**Post date:** [September 25, 2014, 7:23pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/1 "2014-09-25T19:23:02Z")

</div>

Does it return ASCII character or string or numbers?

Thanks.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 25, 2014, 7:49pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/2 "2014-09-25T19:49:26Z")

</div>

According to the [manual](https://support.inductiveautomation.com/usermanuals/ignition/system_serial_readline.htm), it returns a string.

---

<div class="post-metadata">

**Author:** ![pstojakovic](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pstojakovic](https://forum.inductiveautomation.com/u/pstojakovic)\
**Post date:** [September 26, 2014, 2:53pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/3 "2014-09-26T14:53:09Z")

</div>

Right, well my point is how to read floating points or integers?

How would I convert this to double:

…serial code here…

event.source.parent.getComponent(“LED Display”).value = value

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [September 26, 2014, 5:14pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/4 "2014-09-26T17:14:26Z")

</div>

```auto
event.source.parent.getComponent("LED Display").value = float(value)
```

---

<div class="post-metadata">

**Author:** ![pstojakovic](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pstojakovic](https://forum.inductiveautomation.com/u/pstojakovic)\
**Post date:** [September 30, 2014, 7:25pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/5 "2014-09-30T19:25:24Z")

</div>

When I install the Serial support client module it doesn’t show up in the designer. Why is that?

Thanks.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [September 30, 2014, 9:48pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/6 "2014-09-30T21:48:44Z")

</div>

> [@](#):
>
> When I install the Serial support client module it doesn't show up in the designer.

Is it that system.serial.readLine() isn't showing up in the intellihints? Or something else isn't showing up?

If it's system.serial.\* that's not showing up, check in the Gateway that the module isn't faulted and it's the right version for the version of Ignition you have. (If you aren't sure, post both version numbers here). Also check the logs that there wasn't a problem on start up.

---

<div class="post-metadata">

**Author:** ![pstojakovic](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pstojakovic](https://forum.inductiveautomation.com/u/pstojakovic)\
**Post date:** [October 1, 2014, 1:01pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/7 "2014-10-01T13:01:38Z")

</div>

I guess my question is what does Serial module have? A component? Like for example Instrument module, where I can see the component and the module in the designer. Is Serial module like a library for system.serial support. I didn’t see Serial module appear on the designer with other modules so i was wondering what is it?

I have no problems using serial comm from Ignition to Arduino (for example), it works fine.

Thanks.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 1, 2014, 2:28pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/8 "2014-10-01T14:28:00Z")

</div>

Ah, gotcha. No component for the serial module.

---

<div class="post-metadata">

**Author:** ![pstojakovic](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pstojakovic](https://forum.inductiveautomation.com/u/pstojakovic)\
**Post date:** [October 1, 2014, 5:55pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/9 "2014-10-01T17:55:18Z")

</div>

Is it possible to trigger something based on the readings from serial? Lets, say switch to another window, or hide a container?

Thanks.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 1, 2014, 9:05pm UTC](https://forum.inductiveautomation.com/t/system-serial-readline/9101/10 "2014-10-01T21:05:21Z")

</div>

I’m not sure what you’re trying to do, so I’ll answer kind of generally and hope it answers your question.

system.serial.read\* executes once, returns a value, and is then done. So you could read that value, and make a decision on what to do, such as changing windows or component visibility, based on that value.

My guess is that you want to read more than a single time. I’d take a look at putting the system.serial.read\* in a timer script, and stash that return value in a memory tag. Then you can bind the visibility of the component, say, to the value of the tag. (In the Visible binding, choose expression, and then something like {MyTag} \> 5 . When this is true, the component is visible.)

This may seem a bit round about, but what we’re trying to do is be able to read something in a loop, and we’re using the timer script’s ability to run at intervals without taking up all the CPU time. By stashing the value in a tag and binding the tag, it gives you the ability to change which components do what based on the value, without having to change the script each time, plus you get the ability to store that history or chart the value, or anything else tags can do.
