The purpose of this OPC V3 method is to provide an extremely easy way for simple applications to write OPC data. Programmers should be aware that in most servers, the design of the Group based OPC interfaces will provide much better performance than this method. In terms of performance, the user of this method should assume that it will behave as if he were to create a group, add the items, perform a single Write or write and then delete the group.
Visual Basic (Declaration) | |
---|---|
Public Function Write( _ ByVal items() As OPCDA.NET.ItemValue _ ) As Integer |
Parameters
- items
Return Value
Error/success code. Item specific errors are returned in the ItemValues array.In case of errors an OPCException is thrown.
Error accessing individual items are reported in the returned ItemValue object.
Error accessing individual items are reported in the returned ItemValue object.