Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - richmo

Pages: [1]
1
OK, I got it working. Thank you for your help. I added
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.

2
Support Questions / Re: How to add a serial port selection dropdown or menu
« on: September 29, 2022, 01:10:14 PM »
Not yet. I will try again later this evening. Though I do not know how to tell the driver to actually change port when "ComboBox1.SelectedValueChanged" is triggered

3
Support Questions / Re: How to add a serial port selection dropdown or menu
« on: September 28, 2022, 09:31:17 AM »
Thank you. I'm not quite following what do to there. Do you add a button and a combo box to the main dialog?
 I don't know how to "Also put the "ComboBox1_SelectedValueChanged" event at the end when they select some port"

4
Support Questions / How to add a serial port selection dropdown or menu
« on: September 28, 2022, 06:13:53 AM »
Hello,

Newbie here. I've made a simple HMI which displays some values from a custom device over MODBUS RTU. This works fine, but I need a way for a user to be able to select a com port as the number may be different on a different PC.

Is there a simple way to do this? Either a dropdown or a popup menu would be ok.

Pages: [1]