dpQueryConnect and new datapoints

Find and share HowTos to various installations / configurations!
Search

Post Reply
3 posts • Page 1 of 1
giorgiob
Posts: 31
Joined: Fri Sep 07, 2018 12:53 pm

dpQueryConnect and new datapoints

Post by giorgiob »

A CTRL manager executes a query connect command to register a callback function when changes happen to some datapoints values.

Datapoints involved by the query are, for example:

FROM 'VALVE.*'

or

_DPT = "MYDPT"

If new datapoints matching these conditions are added to database after the script executed dpQueryConnect, the callback is called also for new datapoints or the script must be restarted?

Thanks.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: dpQueryConnect and new datapoints

Post by leoknipp »

There is no need to start the script or execute again the dpQueryConnect* function if new datapoints are created.
If the datapoint fits the query string the callback function will be triggered if one of the attributes is changed which the query is connected to.

Best Regards
Leopold Knipp
Senior Support Specialist

giorgiob
Posts: 31
Joined: Fri Sep 07, 2018 12:53 pm

Re: dpQueryConnect and new datapoints

Post by giorgiob »

Thank you very much Leo.
Regards.

Post Reply
3 posts • Page 1 of 1