# Help please, serial communication

**URL:** <https://forum.inductiveautomation.com/t/help-please-serial-communication/8463>\
**Category:** General Discussion\
**Created:** [May 18, 2014, 5:03am UTC](https://forum.inductiveautomation.com/t/help-please-serial-communication/8463 "2014-05-18T05:03:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos.ruiz](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@carlos.ruiz](https://forum.inductiveautomation.com/u/carlos.ruiz)\
**Post date:** [May 18, 2014, 5:03am UTC](https://forum.inductiveautomation.com/t/help-please-serial-communication/8463/1 "2014-05-18T05:03:59Z")

</div>

hello my name is carlos ruiz de mexico

for use:  
system.serial.configureSerialPort (port, bitRate, DataBits, handshake, hardwareFlowControl, parity, stop bits)

a library call number is required or how.

this is my scripting but it appears the error

system.serial.configureSerialPort (\ port = “COM3”, \  
system.serial.BIT\_RATE\_9600 bitRate = \  
system.serial.DATA\_BITS\_8 DataBits = \  
system.serial.HANDSHAKE\_NONE handshake = \  
hardwareFlowControl = False, \  
system.serial.PARITY\_NONE parity = \  
StopBits = system.serial.STOP\_BITS\_1)

system.serial.write (“COM3”, “hello”)

I mark the error that is:

Traceback (most recent call last):  
File “event:actionPerformed”, line 1, in   
AttributeError: ‘com.inductiveautomation.ignition.common.script.Scr’ object has no attribute ‘serial’

how can I send a serial hello by pressing a button.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [May 18, 2014, 7:01am UTC](https://forum.inductiveautomation.com/t/help-please-serial-communication/8463/2 "2014-05-18T07:01:29Z")

</div>

You have to download and install the serial module for the scope you are trying to run this code in (gateway or client)

---

<div class="post-metadata">

**Author:** ![carlos.ruiz](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@carlos.ruiz](https://forum.inductiveautomation.com/u/carlos.ruiz)\
**Post date:** [May 18, 2014, 3:08pm UTC](https://forum.inductiveautomation.com/t/help-please-serial-communication/8463/3 "2014-05-18T15:08:15Z")

</div>

thanks, no doubt I resolved the problem. 😆
