Comments (10)
can you explain again ?
from opcua-modeler.
Try to set a value of, for instance node i=11579, where the type is set to "None", somehow the user should be able to select a type first, and enter a value then
from opcua-modeler.
you mean that you create a node variable but somehow manage to set its value to Null when creating it? How do you do that? This should only be possible when creating a extention object, and we create them yet anyway (we can edit them)
from opcua-modeler.
Maybe by copy-paste?
from opcua-modeler.
it is possible to change type of a variable node by first modyfing its datatype then its value, which will then use the new datatype...maybe we have a bug here we should always use the datatype and not the type of the variant.... @zerox1212
from opcua-modeler.
I ran into it by copy-pasting attributes from NS0, i think
from opcua-modeler.
Can you give me a step by step of what you did? I never used variable types before, and I generally didn't use copy paste.
I can tell you that when you create a new variable, it uses the data type from the selection to set the node data type and the code uses the same data type to create a variant of that type. Whatever is typed in the value box is assumed to match what the user selects, I don't think there is any protection here.
@oroulet , it seems like he is saying that copy and paste isn't saving the value/dtype properly. That is the only way dtype could end up as None (which is different than ua.Null). Perhaps we should check for this condition, and set the node datatype to ua.Null if we ever get a None dtype, then the code would create a Null variant as well.
from opcua-modeler.
You can get a "None" type when importing XML nodesets. Open Types->ObjectTypes->FileType->MimeType->Value. Now i see no possibility to set some other type than "None"
from opcua-modeler.
bump
from opcua-modeler.
This is fixed as far as I remember try master and close issue.
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.