Questions tagged [unified-automation-sdk]

Software development kits (SDK) provided by Unified Automation GmbH for the development of OPC UA clients and servers using C, C++, .NET, Java, or Delphi (Prosys OPC). Use this tag only for questions about Unified Automation SDK installation and usage as well as related Unified Automation software like UaGateway, UaModeler, and UaExpert. Use the tags [c], [c++], [.net], [java], and [delphi], for SDK-agnostic questions about [opc] or [opc-ua] programming.

19 questions
5
votes
0 answers

How to mock a OPC UA Session for unit testing in C#

I have a C# application, which includes a service that works with multiple OPC UA Sessions (UnifiedAutomation.UaClient.Session). These sessions are created by connecting to addresses like opc.tcp://localhost:48030 etc. foreach…
jasie
  • 2,192
  • 10
  • 39
  • 54
4
votes
0 answers

How to write to a string tag in an OPC UA server in C#?

I am using an SDK from Unified Automation that is essentially some C# source code that creates and runs an OPC UA Server. At the moment, I am able to write only to data tags that are either initialized as integers or doubles due to the nature of the…
4
votes
2 answers

Livetime / uniqueness of NodeId (How to manage NodeIds for dynamic nodes)

The Specification (Part 3: Address Space Model) of OPC UA says 5.2.2 NodeId ... A Server shall persist the NodeId of a Node, that is, it shall not generate new NodeIds when rebooting. but how can this be? NodeId is a combination from a…
Thomas
  • 2,345
  • 1
  • 18
  • 17
3
votes
0 answers

Difference between ApplicationInstance.Start(ServerManager) and ServerManager.Start(ApplicationInstance)

I'm trying to understand the code I have derived and I am confused through call of two methods by start of OPC-UA server. I'm using Unified Automation implementation of OPC-UA. First…
Rekshino
  • 6,954
  • 2
  • 19
  • 44
3
votes
1 answer

OPC UA Client SDK (Unified Automation) 2.5.4 Client certificate becomes invalid on computer name change

For OPC UA Client SDK 2.5.4 , on computer name change the client certificates needs to be recreated as they becomes invalid. Why, is it documented anywhere? In Version 2.0, on computer name change the clients certificates were not affected and hence…
Ritesh Kumar
  • 153
  • 12
3
votes
1 answer

Starting Opc Ua Server from public access to ServerManager Class throws NullPointerException

I tried to start an OPC UA Server this way: http://documentation.unified-automation.com/uasdkdotnet/2.1.0/html/L3ServerTutGSLess01.html ApplicationLicenseManager.AddProcessLicenses(Assembly.GetExecutingAssembly(), "License.lic"); MyServerManager…
Markus Weber
  • 1,059
  • 1
  • 11
  • 24
2
votes
1 answer

How to add role permissions to a node in OPCFoundation OPCUA

I'm trying to add specific role permissions for specific users to a particular node. To do this I use this code: private BaseDataVariableState createThing(NodeId requestedNodeId, NodeId requestedDataType, string requestedBrowseName, BaseObjectState…
oiergoiergh
  • 115
  • 7
2
votes
1 answer

How to instantiate an Optional Node from my Information Model into my OPC UA Server ( .Net Environement)

I am a beginner in OPC UA server development. I am working on .NET environment to create an server with my own Information Model which is created on UAModeler. when I instantiate the nodes available in my information model, only those which are set…
Ali Lazzal
  • 21
  • 2
1
vote
1 answer

knowing type of object in opcua on client side

I am reading about information model in OPCUA. Below is text snippet. OPC UA provides more powerful possibilities exposing the semantic of the provided data. In addition to the data provided by Classic OPC, it allows exposing information like that…
venkysmarty
  • 11,099
  • 25
  • 101
  • 184
1
vote
0 answers

OPCUA subscribing to all events

I want to get all events when subscribing to server object at UA Expert, for that how can I listen to the Server object. I am using prosys JAVA sdk 4.2.0 As of now when I am subscribing directly to the specific sub-objects node of server object, I…
1
vote
0 answers

Pros and cons of different OPCUA packages

As far as I understand there are 6+ different variations of OPCUA in .NET (the 'official' .NET OPCUA, and 5+ others, such as Prosys and Unified Automation). At the moment I've tried two, the standard and Unified Automation, and found that they both…
oiergoiergh
  • 115
  • 7
1
vote
1 answer

Creating instance of custom opcua object type node

Noobie OPCUA user here. I built a custom object type using UA Modeler, which as far as I understand creates a class of x custom object with y properties. My issue is with creating a node instance of that in my server. I'm looking for something that…
oiergoiergh
  • 115
  • 7
1
vote
1 answer

Setting username and role in opcua

I don't understand how to create a username and attach a role to it (or other way around?) for my opcua server. I'm using the Unified Automation libraries. So far I have a server that I can connect to as anonymous, and I can view my model (but no…
oiergoiergh
  • 115
  • 7
1
vote
1 answer

Compiling Code in UA Modeler showing up SKD issue

I´m trying to compile the code of an information model in the UAModeler to create a server with UAExpert in .NET. By the time I click on the "compile"-Button, I´ll get the response: "SDK not configured correctly. Configurate SDK in Edit Settings…
Yeap
  • 51
  • 4
1
vote
0 answers

Calling a method through SDKs call method does not return the expected output

I am new with OPC-UA. Currently after studying the demos and examples provided by Unified Automation documentation. I was able to write a simple code which connects to a server end point and calls a method. But sadly that method does not return the…
1
2