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 set LooseReferenceTypes = True when doing programmatic browsing?

More
17 Jul 2024 06:47 #12960 by support
Hello.

BrowseDataNodes is just a convenience method that makes a Browse call that uses specific UABrowseParameters. So the whole point of having it is that it is fixed in what it is doing and it cannot be changed.

The Browse call, on the other hand, is flexible in that you can pass to it any UABrowseParameters you want..

So if you need to make a choice a programmatically between the two behaviors, you cannot use just BrowseDataNodes.

Best regards,

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

More
16 Jul 2024 18:47 #12959 by micham
Hi,

Thank you for your answer. Note: we are using:
nodeElementCollection = client.BrowseDataNodes(endpointDescriptor, parentNodeDescriptor)

and not:

client.Browse()

Do you have a sample code with:
client.BrowseDataNodes() ?


Thank you.

Michael

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

More
15 Jul 2024 16:02 #12948 by support
 
Dim endpointDescriptor As UAEndpointDescriptor = "opc.tcp://opcua.demo-this.com:51210/UA/SampleServer"
Dim nodeDescriptor As UANodeDescriptor = UAObjectIds.ObjectsFolder
 
Dim client As New EasyUAClient()
Dim nodeElementCollection As UANodeElementCollection = client.Browse(
endpointDescriptor,
nodeDescriptor,
New UABrowseParameters(
UANodeClass.Object Or UANodeClass.Variable,
{UAReferenceTypeIds.HierarchicalReferences}))
 
 

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

More
15 Jul 2024 14:11 #12946 by micham
Hi,

Do you have a sample code for this?

Thank you.

Michael

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

More
15 Jul 2024 06:06 #12944 by support
Hello.

Use the Browse call with folllowing BrowseParameters:

- NodeClasses includes Objects and Variables
- ReferenceTypeIds contains UAReferenceTypeIds.HierarchicalReferences
- IncludeSubtypes is True (this is the default anyway)
- BrowseDirections is Forward (this is the default anyway)

Regards

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

More
13 Jul 2024 16:30 #12941 by micham
How can I set LooseReferenceTypes = True when doing programmatic browsing?

Using the dialog browsing, I using this:

uaDataDialog1.LooseReferenceTypes = True

Which object should I set to allow LooseReferenceTypes = True ?

Thank you.

Michael

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

Moderators: support
Time to create page: 0.064 seconds