1
Support Questions / Re: How to add a serial port selection dropdown or menu
« on: October 02, 2022, 02:16:39 PM »
OK, I got it working. Thank you for your help. I added
It does the trick, but if I select a serial port not connected to my device, or I unplug my device, the program becomes very laggy.
I presume this is due to it trying and then timing out after 3s, but how do I stop it from continuously retrying?
For example, just load a message saying "No connection" and then only retry when I press the button.
Code: [Select]
ModbusRTUCom1.PortName = ComboBox_SerialPortList.SelectedItem
It does the trick, but if I select a serial port not connected to my device, or I unplug my device, the program becomes very laggy.
I presume this is due to it trying and then timing out after 3s, but how do I stop it from continuously retrying?
For example, just load a message saying "No connection" and then only retry when I press the button.