Professional OPC
Development Tools

logos

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

      

 Recommend this on Google