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.

Passing arrays and/or structs

More
19 Mar 2018 18:53 #6165 by support
Subscribing to arrays is no different from subscribing to scalar items. You specify parameters as usual, including the ItemID of the array item, and call the subscribe method. In the event notification, the value that you will receive will be an array.

Example (some subscribed items are scalars and some are arrays): opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...%20various%20data%20types.html

Similarly, writing to array items is the same as writing scalars. Just pass in an array as a value to the Write call.

Example: opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...rite%20an%20array%20value.html

OPC "Classic" (which is what EasyDAClient is for) has no notion of "structures", therefore it cannot be directly done - no matter which server or client you use. There are workarounds, such as that the structure may be represented as multiple items in a branch - but then you lose on atomicity of operations. Anyway, it's the server who dictates how this is done - not us, on the client side.

The newer OPC Unified Architecture can work with "structures" (custom data types), and our EasyUAClient does have a support for it.

Best regards

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

More
19 Mar 2018 17:52 #6164 by bobday
Can I use EasyDAClient to Subscribe and/or Write structures and/or arrays? How??

Thanks.

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

Moderators: support
Time to create page: 0.049 seconds