Hi, I would like to have the history of several low-level sensors. For this, I have created a UDT (User-Defined Type) with a single reference tag. This tag is a boolean and is stored in an InfluxDB on change and every hour, as shown in the picture below. Then, I created an instance of this UDT where the tag refers to the signal of the low-level sensor.
However, when I look at the history of the tag, I see that it is not being stored on change. Does anyone have an idea how this could be possible?
Are there any other histories being stored in the database to check and make sure that your db and history settings are properly set up?
I'm also not sure a 0 ms minimum time between samples works properly, so you might want to play around with that setting and try increasing it. You can also go to the diagnostics view for these specific tags to see when the last stored value took place. It might be a good idea to test out different settings and then check back on the last stored value to make sure new values are actually being stored in the db and that they get stored when you are expecting them too, i.e. onChange or at set time intervals.
1 Like
The 0 ms minimum time doesn't make much sense anyway as the tag is only polled at the rate determined by the tag group "PV_MediumPoll". Check what that is running at.
1 Like
Thanks for the information. Indeed the 0 ms doesn't make sense because we poll at 1s.
Maybe I tested this the wrong way. Namely, I changed the reference tag to a memory tag and then changed the value. Then changed the memory tag to the original reference tag. Via the diagnostic tool, I see that the last published value is false. However, the last stored value is true (= value of memory tag).