Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Code generation from ModelDesign XML file
October 13, 2016
13:23, EEST
Avatar
maartenmichiels
Member
Members
Forum Posts: 4
Member Since:
October 13, 2016
sp_UserOfflineSmall Offline

Hi everyone

I am trying to use the OPC UA Java SDK to build a server that needs to conform to a model specified in a ModelDesign xml file (see https://github.com/OPCFoundation/UA-ModelCompiler/blob/master/ModelCompiler/UA%20Model%20Design.xsd). I cannot share the actual file, but this is an example of a file in the same format: https://github.com/OPCFoundation/UA-ModelCompiler/blob/master/ModelCompiler/Design/DemoModel.xml

Is there an easy way of converting a ModelDesign file to the NodeSet2.xml format that the SDK needs?
This tool may be the solution, but I’m unable to test it for the moment because I do not have access to Visual Studio: https://github.com/OPCFoundation/UA-ModelCompiler

Any help is appreciated.

Best regards

Maarten

October 13, 2016
14:43, EEST
Avatar
maartenmichiels
Member
Members
Forum Posts: 4
Member Since:
October 13, 2016
sp_UserOfflineSmall Offline

Quick update: a colleague has built the tool I mentioned above using Visual Studio and I have successfully used it to generate the NodeSet2.xml file that I needed.

In case others have the same problem, I can provide a zip file with the executables that the tool expects to sit under \Bin\Release: https://www.dropbox.com/s/43rhqo3vtabef3i/Opc.Ua.ModelCompiler.Core.zip?dl=0
These executables are built from the version of the source code released on Oct 11, 2016.

October 13, 2016
14:55, EEST
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello Maarten,

Thank you for a good question. This has been asked sometimes previously and this probably won’t be the last time.

Converting from ModelCompiler to UaNodeSet format is indeed possible. The preferred way is to use code generator from OPC Foundation .NET Stack.

First, download OPC Foundation .NET Stack and Sample Applications: https://opcfoundation.org/developer-tools/developer-kits-unified-architecture/net-stack-and-sample-applications/

This package should contain .NET stack code generator. You can use the ModelCompiler file as an input and as an output you will receive UaNodeSet format file (in addition to the .NET code).

The .NET Stack should be accessible to all registered members of OPC Foundation and shouldn’t require a corporate membership.

Anyway, good to know that you got the issue fixed.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 731

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1