All,
I have a data tag that is always on. I want to count the number of seconds that it is grater than zero over an established time range using custom properties. i have tried both system.tag.queryTag History and Calculation. These give me the number of seconds that it that is active. Its active as long as the process is running. any other thoughts?
below is what i have tried with all of the different aggregation modes available.
system.tag.queryTagCalculations(paths,calculations=["DurationOn"],startDate=dayStartTime6A,endDate=nightStartTime6P)
system.tag.queryTagHistory(paths,startDate=nightStartTime6P,endDate=nightStopTime6P,returnSize=1,aggregationMode="DurationOn")