C# code generation of object nodes using model compiler|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
C# code generation of object nodes using model compiler
Avatar
Fahad Golra
Member
Members
Forum Posts: 3
Member Since:
11/07/2019
sp_UserOfflineSmall Offline
1
08/06/2020 - 03:23
sp_Permalink sp_Print

The generated code from the model design generates a corresponding class in C# for each objectType node. When it comes to object nodes, it generates C# instances of baseObjectType (baseVariableType in case of variable nodes) instead of the type referenced by hasTypeDefinition. For example, for an object node with a hasTypeDefinition to stateType (stateMachineState in the code), you will get an instance of baseObjectType(baseObjectState in the code) and as a result you can not use it for the state machines. Is it a design choice. How is the user expected to use this part?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/06/2020 - 14:29
sp_Permalink sp_Print

The samples should have examples where the base object type is replace with a subtype chosen by the developer.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 38
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855