Page 1 of 1

dpQueryConnect and new datapoints

Posted: Thu Jan 17, 2019 3:52 pm
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.

Re: dpQueryConnect and new datapoints

Posted: Fri Jan 18, 2019 9:34 am
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

Re: dpQueryConnect and new datapoints

Posted: Fri Jan 18, 2019 5:01 pm
by giorgiob
Thank you very much Leo.
Regards.