AttributeError(...) while trying to call system.serial.*

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

action code for button:

system.serial.configureSerialPort(\ port="COM3",\ bitRate=system.serial.BIT_RATE_9600,\ dataBits=system.serial.DATA_BITS_8,\ handshake=system.serial.HANDSHAKE_NONE,\ hardwareFlowControl=False,\ parity=system.system.PARITY_NONE,\ stopBits=system.serial.STOP_BITS_1)

Ignition v7.6.4 (b2013112117)
Java: Oracle Corporation 1.7.0_45

seems .serial.configureSerialPort( recognised as attribute of some object…

Hi,

Is the Serial Support Gateway module or Serial Support Client module installed on your Ignition server?

You have to install one of these before you can use the system.serial.* functions.

ur right
but i cant understant why error report was so unfriendly saying “no field…” instead of “serial module not installed”
any way thanks