Comments (7)
I am not entirely sure to understand but if you create a new object of type pump it is expected that the pump object also contains ManufacturerName and ModelName since the Pump object inherits FieldDevice.
Id you create an object of type FieldDevice, it should only have two properties.
But what is strange in your screenshots is that the properties have a T on them, that means that they are types....I think they should not.... might be a bug at open62541 tooo
from opcua-modeler.
thanks, oroulet! I wasn't aware that the subnodes in Objects Type mean inheritance. The fact that variables remain type is a separate issue. I will have a look and will open a new issue if it comes from the modeler.
from opcua-modeler.
Can you start with a brand new address space in modeler and hand build these types. Build the pump type, then build the device type and put the pump inside it. Then instantiate the device type as an object in your folder.
I do not really agree with @oroulet as I think you should get a copy of your device type structure, not the strange inheritance you are showing. Unless your XML has extra stuff which is creating the inheritance.
In the past when building types in modeler, I would always get an exact copy of the type structure when instantiated.
from opcua-modeler.
@zerox1212, in a new address space, the results are similar. A pump objects inherits the properties of the device ObjectType, and a device object doesn't consist of any pumps. If I create another Device2 ObjectType, and put a Pump Object in, the device2 object still has no pump in it.
from opcua-modeler.
Are the variables that constitute the ObjectType supposed to be of type Variable or DataType? In the open62541 example the names are DataTypes, while in opcua-modeler, I could set only variables.
from opcua-modeler.
Interesting. I'll have to dig up my old projects and test it. I don't remember that happening, but I haven't been working with UA for a long time.
In my last project I had type Variable under my objects, not type.
from opcua-modeler.
@kleskjr i am quite sure the open62541 example is broken. Look at other object typed in standard address space and open bug report for them
from opcua-modeler.
Related Issues (20)
- Possible to add object array to a Object Type? HOT 1
- Pull Properties from TypeDefinition HOT 3
- List Index out of Range HOT 1
- Cannot load MachineVision Specification nodeset
- TypeError: hasattr(): attribute name must be string HOT 3
- enumeration HOT 4
- Installation on Windows 10
- SyncNode' object has no attribute 'get_attributes' HOT 5
- --
- ImportError: cannot import name 'type_string_from_type' from 'asyncua.ua.uatypes
- XML Parsing Error HOT 1
- AttributeError: 'Node' object has no attribute 'read_attributes' HOT 6
- TypeError: __init__() got an unexpected keyword argument 'namespaceidx' HOT 4
- opcua-modeler==0.5.12 incompatible with python-opcua==0.98.13 HOT 7
- Impossible to load default schema `Opc.Ua.Di.NodeSet2.xml` HOT 1
- Unable to save model HOT 2
- unable to install
- Crash upon entering reference HOT 1
- Scrambled Namespaces
- Annoying focus policy in dialogs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opcua-modeler.