Hi, I want to use DataSubcriber2 to take V and I measurements from a multimeter. I add the DataSubcriber2 to the Form and configure it to take values from 4 modbus addresses.
But my problem is that I don't know where those values are read.
I have only noticed that in "e.Values (0)" I have the value of the first loaded record. I thought that changing the index of e.value (index) would have the others, but it gives me an error.
my intention is that the measured values are displayed as a label text, beyond the text I was using.
Private Sub DataSubscriber21_DataChanged (sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber21.DataChanged
Label2.Text = e.Values (0) 'this if it gives the desired result
Label3.Text = e.Values (1) 'from here I already have an error
Label4.Text = e.Values (2)
Label5.Text = e.Values (3)
End Sub
Can you tell me what my mistake is?
Thanks a lot.