Good afternoon.
I have installed Ignition 8.0.2 in a Virtual Machine. I turn off the virtual machine at night and turn it on in the morning, around 10 am. Therefore, from 6 am to 7 am (for example) there are no historical records.
Then, in a window I put two tables.
- The first tabe is filled with this expression:
runscript(“system.tag.queryTagCalculations(paths=[’[default]FabricaCP5/AguaFria/EquipoFrio2/Comp2_MarchaParo’], calculations=[‘DurationOn’], startDate=‘2019-06-18 06:00:00’, endDate=‘2019-06-18 07:00:00’, ignoreBadQuality=True, noInterpolation=True)”)
- The second table is filled with this expression:
runScript(“system.tag.queryTagHistory(paths=[’[default]FabricaCP5/AguaFria/EquipoFrio2/Comp2_MarchaParo’], aggregationMode=‘DurationOn’, startDate=‘2019-06-18 06:00:00’, endDate=‘2019-06-18 07:00:00’, ignoreBadQuality=True, noInterpolation=True, returnSize=1)”)
As you can see, in the two functions (“system.tag.queryTagCalculations ()” and “system.tag.queryTagHistory ()”) I use the “noInterpolation = True” parameter so that the records that do not exist are not interpolated.
As there is no historical records between 6 a.m. and 7 a.m., because the VM is off, the two tables should be empty.
The “system.tag.queryTagHistory ()” function works correctly (second table), but “system.tag.queryTagCalculations ()” ignores the “noInterpolation = True” parameter ((first table)).
Best regards.