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.

Dynamic UAReadArguments

More
19 Jun 2017 12:49 #5271 by AdamBOD
Replied by AdamBOD on topic Dynamic UAReadArguments
That was it, thanks very much

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

More
19 Jun 2017 10:21 - 19 Jun 2017 10:22 #5270 by support
Replied by support on topic Dynamic UAReadArguments
I think that your last line should simply be
Dim attributeDataResultArray() As UAAttributeDataResult = EasyUAClient1.ReadMultiple(TagArray.ToArray)

Regards
Last edit: 19 Jun 2017 10:22 by support.

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

More
19 Jun 2017 09:51 #5269 by AdamBOD
Replied by AdamBOD on topic Dynamic UAReadArguments
Public TagArray As List(Of UAReadArguments)

TagArray.Add(New UAReadArguments(EndPointDescriptor.ToString, CurrentNodeDescriptor.ToString))

Dim attributeDataResultArray() As UAAttributeDataResult = EasyUAClient1.ReadMultiple(New UAReadArguments() {TagArray.ToArray})

This Code gives the error: Value of type 'UAReadArguments()' cannot be converted to 'UAReadArguments'

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

More
19 Jun 2017 09:44 #5268 by support
Replied by support on topic Dynamic UAReadArguments
Hello,

I do not quite understand the question. Please try to provide more details and clarity about what you need to achieve. I will try below to explain at least something that may be related.

You can create arrays "on the fly" in .NET, and they are normal arrays that get passed to ReadMultiple.

If you prefer working with e.g. lists, you can create a List<>, and then do .ToArray() just before passing it to ReadMultiple.

Regards

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

More
19 Jun 2017 08:36 #5267 by AdamBOD
I'm trying to ReadMultiple UA Tags with a dynamic list of tags but I'm unsure of how to go about it, is there anyway of either parsing a normal array to a ReadArguments array or is there a means of adding ReadArguments to a ReadArguments array

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

Moderators: support
Time to create page: 0.058 seconds