Page 1 of 1

Writing to the server

Posted: 05 Aug 2021, 09:18
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?

Re: Writing to the server

Posted: 05 Aug 2021, 12:30
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.

Re: Writing to the server

Posted: 06 Aug 2021, 06:58
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

Re: Writing to the server

Posted: 09 Aug 2021, 07:01
by DavidS
Ok found it at UaSdkNetBundleEval\src\examples\UaDemoServer