Serial Module - List Available Serial Ports

Hi

Is there a way to List the available serial ports in a drop down list on the client PC when using the serial module, I could do with a setup page to allow ‘engineers’ to change the assigned serial port number of a barcode scanner which is connected through a USB/Serial convertor, these can when plugged into different USB ports change there serial port assignment.

You would only be able to create a static drop down list of available ports to use. There isn’t going to be a way to grab the available ports then add them to the drop down.

No idea how fast this would be, but you might try using Ignition’s system.serial module to try all COM ports (1…255). If you get a connection, close it and add the COM# to a list and then display the list.

1 Like