Good day
I have a problem setting com port on modbus rtu driver. I use the next code
Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim ports As String() = SerialPort.GetPortNames()
Dim port As String
For Each port In ports
ComboBox1.Items.Add(port)
Next port
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim MBDriver As New AdvancedHMIDrivers.ModbusRTUCom
MBDriver.PortName = ComboBox1.SelectedItem()
MBDriver.BaudRate = 9600
MBDriver.StationAddress = 1
MsgBox("OK", MsgBoxStyle.Information, MBDriver.PortName)
End Sub
COM ports are listed on a combobox correctly, but, when i try to apply selected com port to driver, it doesn't change. In AHMI v3.99y works perfectly. Now i using AHMI 3.99xR1
Any suggestion?
Additional