Hello guys
Waiting for you to be well, I write to ask for your help.
I have been doing some tests for a program that I am doing based on Arduino and I have the following problem
When using Datasubscriber 2 with the DataChange event manipulator it seems to me that the values change only once, although according to the microcontroller screen is constantly changing. I use a label to corroborate if it is true and apparently it is so. I have also used the system debugger and the same. I attach the code and some screenshots waiting for some help from you. I can not know if it is a problem of the label or it is that the values are updated only once.
Private Sub DataSubscriber21_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber21.DataChanged
Dim p(12) As Double
If e.Values IsNot Nothing Then
Me.Label5.Text = ""
For i = 0 To 11
p(i) &= CType(e.Values(i), Double) / 10.0
Me.Label5.Text &= p(i) & Environment.NewLine
'Me.Label5.Refresh()
Next
End If
End Sub
https://ibb.co/PDfztWQhttps://ibb.co/XV7GHqZhttps://ibb.co/jTHNhGs