In our Ignition application, we read data from a weight scale via the serial port. Recently, our IT department upgraded the Ignition client’s operating system to Windows 11. After the upgrade, the client fails to open the serial port using the command in the startup script and crashes without logging any errors in the server log.
We are currently using Ignition version 7.9.17. Below is the script that worked on Windows 10 but no longer functions on Windows 11. If I disable the last command system.serial.openSerialPort(value), the client starts successfully.
if hostname == "XYZ":
system.serial.configureSerialPort(
port="COM3",
bitRate=system.serial.BIT_RATE_19200,
dataBits=system.serial.DATA_BITS_8,
handshake=system.serial.HANDSHAKE_NONE,
hardwareFlowControl=0,
parity=system.serial.PARITY_NONE,
stopBits=system.serial.STOP_BITS_2)
value = 'COM3'
system.serial.openSerialPort(value)