Writing to the server

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

Moderator: uasdknet

Post Reply
DavidS
Jr. Member
Jr. Member
Posts: 3
Joined: 05 Aug 2021, 07:50

Writing to the server

Post by DavidS »

From the tutorial documentation, http://documentation.unified-automation.com/uasdknet/3.0.10/html/L3ServerTutGSLess03.html#L4ServerTutGSLess03Step03, we are told
If the source of the real time data delivers data changes through an event based mechanism, the connection to the data source is very simple. The only thing that needs to be implemented is the update the value of the Variable node if a data change arrives for this variable. All the read and data monitoring is already handled by the SDK.
.

The question is how do we do that?

Looking at the APIs exposed, I see that there are `Write` methods but there are many of them and it's not clear if they will achieve what I want to achieve.

So my scenario is as follows:

Assuming that we are using the Information Model from https://www.unified-automation.com/downloads/webinars/net-applications.html, what do we have to do in order to write to the OPC UA Server assuming that the source is something we have "control" over.

For instance, I want to go over each record in an Access dB and then write the values into the OPC UA server. The first part i.e. going over each record and extract the relevant data is what we have "control" over. The question is how do I then write the data from the source into the OPC UA Server?

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

Re: Writing to the server

Post by Support Team »

Hello David,

we assume that you want to push the data from your source, over which you have "control", into the server.
In this case, you should implement an external push for your data.

Our DemoServer provides an example of how to implement this. Take a look at the SlowDataSource section of the DemoNodeManager.
Best regards
Unified Automation Support Team

DavidS
Jr. Member
Jr. Member
Posts: 3
Joined: 05 Aug 2021, 07:50

Re: Writing to the server

Post by DavidS »

Hi,

Thanks for the quick answer. However, I am having trouble finding the DemoServer code for .NET. What I have found is this https://www.unified-automation.com/downloads/opc-ua-servers.html. I have looked at the samples and also could not find anything there. Please help.

TIA,

David

DavidS
Jr. Member
Jr. Member
Posts: 3
Joined: 05 Aug 2021, 07:50

Re: Writing to the server

Post by DavidS »

Ok found it at UaSdkNetBundleEval\src\examples\UaDemoServer

Post Reply