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 ItemValue _ ) As ItemValue() |
C# | |
---|---|
public ItemValue[] Write( ItemValue[] items ) |
Parameters
- items
- An array of ItemValue objects with the value, quality and timestamp for each item.
Return Value
Array with error information for each item.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.