Giter Site home page Giter Site logo

kepserver data event about python-opcua HOT 4 CLOSED

freeopcua avatar freeopcua commented on August 22, 2024
kepserver data event

from python-opcua.

Comments (4)

oroulet avatar oroulet commented on August 22, 2024

Look at subscription in example client. Let me know if it works with kepware

On Wed, Jul 1, 2015, 07:53 kashp [email protected] wrote:

Hi oroulet
I am connecting kepserver with python using python-opcua
I am polling the server for tag value change, Is there any event
registration mechanism so that my python function triggered automatically
as the tag value will change

Thanks


Reply to this email directly or view it on GitHub
#11.

from python-opcua.

kashp avatar kashp commented on August 22, 2024

Thanks oroulet its working thanks,
I have one more doubt, lets suppose i have registered 180 tags
like this
sub.subscribe_data_change(myvar)

data_change(self, handle, node, val, attr) will be executed upon event receive.
If all tags changed then this function will be called in parallel or sequential
????

from python-opcua.

oroulet avatar oroulet commented on August 22, 2024

In current implementation there is only one thread calling callbacks so all
calls will be sequential s. One could implement a thread pool but in
python, which is anyway monoprocess, I am not sure it would help anything

On Thu, Jul 2, 2015, 07:40 kashp [email protected] wrote:

Thanks oroulet its working thanks,
I have one more doubt, lets suppose i have registered 180 tags
like this
sub.subscribe_data_change(myvar)

data_change(self, handle, node, val, attr) will be executed upon event
receive.
If all tags changed then this function will be called in parallel or
sequential
????


Reply to this email directly or view it on GitHub
#11 (comment)
.

from python-opcua.

oroulet avatar oroulet commented on August 22, 2024

One planned improvement is to allow subscriptions to many tags at once...
But not done yet

On Thu, Jul 2, 2015, 13:49 Olivier Roulet-Dubonnet [email protected]
wrote:

In current implementation there is only one thread calling callbacks so
all calls will be sequential s. One could implement a thread pool but in
python, which is anyway monoprocess, I am not sure it would help anything

On Thu, Jul 2, 2015, 07:40 kashp [email protected] wrote:

Thanks oroulet its working thanks,
I have one more doubt, lets suppose i have registered 180 tags
like this
sub.subscribe_data_change(myvar)

data_change(self, handle, node, val, attr) will be executed upon event
receive.
If all tags changed then this function will be called in parallel or
sequential
????


Reply to this email directly or view it on GitHub
#11 (comment)
.

from python-opcua.

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.