queryTagHistory Getting Wrong Values

Dan_Mor
Fri, 03 Feb 2023 23:49:59 +0000
Ignition

Hi, I'm trying to get a dataset with values from a historical tag using queryTagHistory(). The concept is that once the user selected the two dates (range), and then click on "Get Data", the data will be displayed on the table. The problem is that the values on the "first shift efficiency" column are wrong. In the example bellow you can see that the value at 1/28/2023 1:00pm should be 40.44 but the dataset has 47.66 instead.

Comparing values with chart.

Script in the button.

Tag history settings:

6 posts - 3 participants