VB.NET OPC READ to slow...
Posted on 2011-09-19
I need som tips..
I use the " Imports OPCAutomation "
The read and write works verry good but it takes to long time..
about 5 sec for every tagg..
I just made som code to show how I use it...
Dim tagggg(50) As OPCItem
Dim i As Integer = 1
For i = 1 To 30
tagggg(i) = plcReadTest1Group.OPCItems.Item(i)
tagggg(i).Read(OPCAutomation.OPCDataSource.OPCDevice) ' <---- This line takes about 5 sec...
MainForm.resultat(i) = "'" + tagggg(i).Value.ToString() + "'"
I hope somone have som tips how I can fix this.. can i read from other way?
Please ask me if my question isen´t clear....