I’m having an issue with a system that I’m playing around with. I’m trying to read from a serial port via a tag change gateway script, but every time i try to open it the gateway is crashing.
Gateway version 8.1.7 (b2021060314)
Looking at the wrapper log all I can see is :
INFO | jvm 2 | 2021/07/14 19:40:01 | I [p.DesignSession ] [18:40:01]: Socket connected to session. pageId=session-props session-project=Weighing_Room
ERROR | wrapper | 2021/07/14 19:42:02 | JVM exited unexpectedly.
STATUS | wrapper | 2021/07/14 19:42:07 | Reloading Wrapper configuration…
STATUS | wrapper | 2021/07/14 19:42:08 | Launching a JVM…
INFO | jvm 3 | 2021/07/14 19:42:08 | WrapperManager: Initializing…
I have tried using the system.serial. port script strait from the users manual, but it still does the same thing.
** port = “COM3”,**
** bitRate = system.serial.BIT_RATE_9600,**
** dataBits = system.serial.DATA_BITS_8,**
** handshake = system.serial.HANDSHAKE_NONE,**
** hardwareFlowControl = False,**
** parity = system.serial.PARITY_NONE,**
** stopBits = system.serial.STOP_BITS_1) as port:**
** line = port.readLine(60000)**