Tag history multiple timestamp when connecting multiple opc tags

Hello everyone, looking for support :slight_smile:

if i connect multiple opc tags with tag history in a xy chart...

... i get multiple timestamp with the same value, while i should have a single timestamp at 9.49 and 10.15

furthermore, if i check the database query browser, i have a single recorded value at 9.49 and 10.15, for all the three opc tags selected in the tag hysrtory.

how can i display in the chart only values that correspond to the original timestamps?

thanks!!

I have updated the problem description

Your tag history binding is returning a "wide" table and so it adds a row for each timestamp found on the selected tags and then adds a value for any blanks so that all cells are filled.

I suggest that you try this:

  • Under dataSources create three arrays, 15min_act, 15min_set and 60min_act.
  • Create a tag binding on each to return a narrow column for one tag.

Now point each plot's data.source to the relevant data.
series.0.data.source : 15min_act
series.1.data.source : 15min_set
series.2.data.source : 60min_act

That should get you most of the way there.

I would also set Query Mode to "As Stored" as this will show you the actual data points and not some possibly misleading interpolation.

2 Likes

it works, thanks a lot