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.

how can i read a variable from type DTL in my program to C#

More
17 Jan 2020 11:59 #8149 by support
Hello,

you should use the ReadMultipleMethods (example: opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...0Read%20multiple%20values.html ).
That is not going to simplify the code that much, but it will be much more efficient.

If the structure is also provided as an OPC UA Data Type (which is a *different* thing from a variable type), then it might be possible to read the whole structure at once. But I cannot know whether that is the case on the server side. In that case you would simply read the array element, and get back an object containing the structure membets. This is described here:
- www.opclabs.com/products/quickopc/extensions/opc-ua-complex-data
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...omplex%20Data%20Extension.html .

Regards
The following user(s) said Thank You: alozano

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

More
17 Jan 2020 11:26 #8146 by alozano
Hi,
now I am using this method to read a variable of type DTL and I will like it simplify the code, anyone can help me?

Attachments:

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

Moderators: support
Time to create page: 0.054 seconds