Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

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.050 seconds