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 - Yoni

Pages: [1]
1
Open Discussion / Re: Change parity in Combobox not working?
« on: July 21, 2021, 12:27:03 PM »
Update:
I found the problem...
The value must be a number...

But now a new question:
How can i keep my combobox with TEXT for the Parity and Stopbit but convert it to numbers for the combobox to work?

For example:
None = 0
Odd = 1
Even = 2


2
Open Discussion / Change parity in Combobox not working?
« on: July 20, 2021, 06:18:58 PM »
Hi all,

I'm new here.
I'm trying a couple off days to create a project, to read Modbus values from a Air Handling Group.
I want to make it possible to change connection settings in de HMI.

It's working well, only one thing is not working: Parity.
When i change parity in a combobox, i get a error.

This is the code for the combo:

Code: [Select]
    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.SelectedIndexChanged
        ModbusRTUCom1.Parity = ComboBox3.SelectedItem
    End Sub

Pages: [1]