The solution was to make the logger object a global variable.
Using "this" as object parameter did not work for me.
Search found 6 matches
- Wed Apr 23, 2025 5:54 pm
- Forum: Bugs / Problems
- Topic: run control manager with callback from class
- Replies: 3
- Views: 3738
- Fri Apr 18, 2025 11:51 am
- Forum: Bugs / Problems
- Topic: run control manager with callback from class
- Replies: 3
- Views: 3738
run control manager with callback from class
Hi, I try to make a logger which hooks a callback on an element of a datapoint type. When I run the query connect from the main function of a test script, it works (the testscript keeps running in the process monitor, status 2): main() { string query = "SELECT '_online.._value' FROM '*.el1.el2'...
- Wed Nov 20, 2024 5:23 pm
- Forum: HowTos
- Topic: Callback for newly created datapoint of certain type
- Replies: 3
- Views: 2755
Re: Callback for newly created datapoint of certain type
Thanks for the response, this is what i was looking for. I will explore the AI Assistant
- Wed Nov 20, 2024 3:50 pm
- Forum: HowTos
- Topic: Callback for newly created datapoint of certain type
- Replies: 3
- Views: 2755
Callback for newly created datapoint of certain type
Hi,
The use of DpConnect() is firing a callback when the value of a datapoint changes. Is there a function or a way to fire a callback when a new datapoint is created for a certian datapoint type?
Kind regards,
Stef
The use of DpConnect() is firing a callback when the value of a datapoint changes. Is there a function or a way to fire a callback when a new datapoint is created for a certian datapoint type?
Kind regards,
Stef
- Wed Feb 28, 2024 9:00 am
- Forum: HowTos
- Topic: How to read the timestamp of a datapoint in Ctrl?
- Replies: 3
- Views: 2102
Re: How to read the timestamp of a datapoint in Ctrl?
Thank you very much for the answer, works perfectly.
I could not find the _stime attribute in the documentation:
https://www.winccoa.com/documentation/W ... dpGet.html
I could not find the _stime attribute in the documentation:
https://www.winccoa.com/documentation/W ... dpGet.html
- Tue Feb 27, 2024 5:15 pm
- Forum: HowTos
- Topic: How to read the timestamp of a datapoint in Ctrl?
- Replies: 3
- Views: 2102
How to read the timestamp of a datapoint in Ctrl?
Hi,
I want to read the timestamp of a specific datapoint in control script.
How can I do this?
In the documentation I found a lot of attributes to read with dpget, but I can't seem to find the timestamp of the last write to a datapoint.
Thanks in advance,
Stef
I want to read the timestamp of a specific datapoint in control script.
How can I do this?
In the documentation I found a lot of attributes to read with dpget, but I can't seem to find the timestamp of the last write to a datapoint.
Thanks in advance,
Stef