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
Moderator
Members

Moderators
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: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 683

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1