ModelCompiler UANodeSet.xsd issue|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
ModelCompiler UANodeSet.xsd issue
Avatar
jul
New Member
Members
Forum Posts: 2
Member Since:
08/18/2016
sp_UserOfflineSmall Offline
1
08/19/2016 - 00:28
sp_Permalink sp_Print sp_EditHistory

Hello,

I have an InformationModel compiled as .xml according to the UaNodeSet.xsd schema. Now I want to generate the C# source files out of it via the Opc Foundation ModelCompiler:

https://github.com/OPCFoundati.....elCompiler

According to the description it should be able to generate source files out of any Model compiled according to the NodeSet schema. I followed the instructions and help.txt file description but I get the following Exception:

 

Fehler im XML-Dokument (1,2).
bei Opc.Ua.ModelCompiler.ModelCompilerValidator.Validate2(IList`1 designFilePaths, String identifierFilePath, Boolean generateIds) in D:\20_Projekte\1_ClientTool_ProduktCD\UA-ModelCompiler-master\ModelCompiler\ModelDesignerValidator.cs:Zeile 926. bei Opc.Ua.ModelCompiler.ModelGenerator2.ValidateAndUpdateIds(IList`1 designFilePaths, String identifierFilePath, UInt32 startId) in D:\20_Projekte\1_ClientTool_ProduktCD\UA-ModelCompiler-master\ModelCompiler\ModelGenerator2.cs:Zeile 80. bei Opc.Ua.ModelCompiler.Program.ProcessCommandLine2(List`1 tokens) in D:\20_Projekte\1_ClientTool_ProduktCD\UA-ModelCompiler-master\ModelCompiler\Program.cs:Zeile 297.

wurde nicht erwartet.
bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderModelDesign.Read25_ModelDesign()

 

According to the Schema the XML file starts like this:

                          xmlns:uax="https://opcfoundation.org/UA/2008/02/Types.xsd"
                          xmlns="https://opcfoundation.org/UA/2011/03/UANodeSet.xsd"
                          xmlns:s2="https://opcfoundation.org/UA/DI/Types.xsd"
                          xmlns:s3="https://opcfoundation.org/UA/AutoID/Types.xsd"
                          xmlns:xsd="http://www.w3.org/2001/XMLSchema">

........

 

I can build and generate the samples called "StandardTypes" coming with the ModelCompiler, but there is no sample .xml file using the NodeSet schema.

Maybe I missed something?

I dont know what the problem is and I would appreciate any help on this issue

 

Thanks in advance!

Best regards,

jul

Avatar
Randy Armstrong (Sparhawk)
Member
Members
Forum Posts: 20
Member Since:
05/12/2015
sp_UserOfflineSmall Offline
2
08/19/2016 - 12:15
sp_Permalink sp_Print

The documentation was messed up.

It has been fixed:

https://github.com/OPCFoundati.....elCompiler

You cannot use a NodeSet is an INPUT.

A NodeSet is an OUTPUT of the tool.

Avatar
jul
New Member
Members
Forum Posts: 2
Member Since:
08/18/2016
sp_UserOfflineSmall Offline
3
08/22/2016 - 00:38
sp_Permalink sp_Print

ah ok. Thank you!

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Patrick Bruce
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1349
Posts: 4577