Auto-Create Node and Discovery of Node

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
Americium
Full Member
Full Member
Posts: 5
Joined: 07 Feb 2019, 17:01

Auto-Create Node and Discovery of Node

Post by Americium »

Hi,

I 'm looking for information about the server nodes.
I have this structure :

Code: Select all

- Capteur
         - Temperature
                  - Ip
                  - Ref
                  - State
                  - TimeStamp
                  - Value
I got to create this with "ImportUaNodeSet". But i want to create more objects on my serveur.
So i use the code from the lesson 2.
Now i have this :

Code: Select all

- Capteur
         - Temperature
                  - Ip
                  - Ref
                  - State
                  - TimeStamp
                  - Value
         - Temperature
                  - Ip
                  - Ref
                  - State
                  - TimeStamp
                  - Value
That's exactly what i'm looking for.
(I use the class "UnifiedAutomation.UaClient.Controls.BrowseDlg" to display the nodes.)

My first question is :
I want to know if it's possible to identify the node used by another client or my client and not show them with the same class ("UnifiedAutomation.UaClient.Controls.BrowseDlg") ?
And if it's possible to display only the folders and not the attributes ?

And the second question is :
It's possible to add an event when a client uses a new node ?
I want to have N+1 nodes(with N = number of nodes used).
A new client could come to use the last node. And the server will create another node for the next client.

Thank you for your reading and your time.

Sincerely,
Americium.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3070
Joined: 18 Mar 2011, 15:09

Re: Auto-Create Node and Discovery of Node

Post by Support Team »

Hello,

It is a very special use case that a server will add nodes for new clients (next to the diagnostics nodes).

If you want to make nodes visible for single clients or groups you need to implement the HasAccess methods or set INodeAccessInfo at the client. Please see
DemoServer
Server Getting Started Lesson 9

You can write your own BrowseView. There are diffenent filters. If you want to show only Objects, then you can set the NodeClassMask in the BrowseContext

If you set the NoedHandleType of Variables to ExternalPolled or ExternalPushed, you will need to implement the Read method. If a client reads a Variable, the sdk will call the method. Here you can create the event.
Best regards
Unified Automation Support Team

Post Reply