Help please, serial communication

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.

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

thanks, no doubt I resolved the problem. :laughing: