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?
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.
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.
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.
Do you have a sample code for this?
Thank you.
Michael
Please Log in or Create an account to join the conversation.
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.
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.