Professional OPC
Development Tools

logos

Differences between various Write methods

More
20 May 2016 12:41 #4058 by support
There is really just one method that does all the work: EasyUAClient.WriteMultiple. The remaining methods are just wrappers around it, manipulating the input arguments and the results.

- EasyUAClient.Write creates an argument array with just one input, call WriteMultiple, and unpacks the result array, throwing exception if needed.

- EasyUAClient.WriteMultipleValue creates inputs arguments where the AttributeData contains the values specified, but just defaults for the ServerTimestamp, SourceTimestamp, and StatusCode. Then it simply calls WriteMultiple. Note that the default for StatusCode should be "Good", therefore it does not explain why the tag would turn to Bad on the server.

- EasyUAClient.WriteValue constructs an argument array with just input, calls WriteMultipleValues, and unpacks the result array, throwing exception if needed.

Whenever possibly, you should use the methods with "Multiple" in their name, because they will do more at once to the server (instead of calling a methods without "Multiple" in a loop). But otherwise, the performance differences (for the processing on the client side) are negligible.

Please Log in or Create an account to join the conversation.

More
20 May 2016 12:22 #4057 by sebpinski
We would also like to know whether there is any difference between the methods, particularly where speed is concerned:

EasyUAClient.Write and EasyUAClient.WriteValue
EasyUAClient.WriteMultiple and EasyUAClient.WriteMultipleValues

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.153 seconds

      

 Recommend this on Google