Hey guys. Can someone explain to me if it is possible to calculate, in AF Analysis, for example the hourly average based on the timestamp of a given input?

Exemple: I need to calculate the hourly avg flow based on the timestamp of a given input. Like a TAG that indicate the start of a operation.

 

My triggers:

 

Start time: 7:34 am

 

End time: 8:39 pm

 

The result should be the hourly average at 7:34 am until 8:34 am .... 7:34 pm until 8:34 pm

Parents
  • Possibly...

    If you want a single analyses to find the hourly averages from the start of trigger to the end of trigger, no, AF does not allow looping.

    If you want to get the average WHILE the trigger is active, then yes.

    Create a periodic analysis running every minute.

    If the minute portion of the trigger time matches the current minute then

    if the hour portion of the trigger time is NOT current hour then

    tagavg('Attribute','*','*-1h')

    else

    NoOutput()

    else

    NoOutput()

Reply
  • Possibly...

    If you want a single analyses to find the hourly averages from the start of trigger to the end of trigger, no, AF does not allow looping.

    If you want to get the average WHILE the trigger is active, then yes.

    Create a periodic analysis running every minute.

    If the minute portion of the trigger time matches the current minute then

    if the hour portion of the trigger time is NOT current hour then

    tagavg('Attribute','*','*-1h')

    else

    NoOutput()

    else

    NoOutput()

Children