Code Monkey home page Code Monkey logo

Comments (4)

oroulet avatar oroulet commented on July 3, 2024

using the new API from asyncua it now much easier(and safer) to create models using code. see example https://github.com/FreeOpcUa/opcua-asyncio/blob/master/examples/server-data-type-definition.py

Otherwise make a node and then copy the enum definitoin variable from another node and modify. It should work

from opcua-modeler.

klementuel avatar klementuel commented on July 3, 2024

ok this might be a solution for another project, in this project (this is for a thesis) I would like to use a modeler to better display the modelling. Then use the created NodeSet as a diversion for an open62541 server.

Unfortunately I don't quite understand the copy, when I copy and paste an enum type, I get the error:
opcua.ua.uaerrors._base.UaError: Datatype must be a subtype of builtin types i=20010
because I can't edit the NodeID to push the type into my namespace.

If it doesn't work, that's just the way it is...

from opcua-modeler.

oroulet avatar oroulet commented on July 3, 2024

I have done that mamy times so it should work. Create a new data type under enums. They only copy the variable describing the values

from opcua-modeler.

klementuel avatar klementuel commented on July 3, 2024

I try it again, but it always only and int32 without enum informations...

from opcua-modeler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.