Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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/OPCFoundati…..Design.xsd). I cannot share the actual file, but this is an example of a file in the same format: https://github.com/OPCFoundati…..oModel.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/OPCFoundati…..elCompiler

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/43rh…..e.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/deve…..lications/

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:
Guest(s) 97
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_Wanderlei
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1