Am working on creating a Future prediction of Flow for a day starting from 't+6h'. I don't know if my expression is correct and also how can I associate the Future Timestamp to the data value.
Since you already created your FutureTimeStamp variable, you can use it for Output Time Stamp (Variable) under Advanced button at the bottom of screen.
At first glance I would also use If Else statement to determined TagTot arguments. If we pick future timestamp on current time basis, I think we should also do the same for actual value.
I am not sure if t+30h will work as expected, because (I guess Cumultative Production contains real-time data) we will get at least 6 hours of no data (just before midnight) - 24 hours of data from the current day, but six hours without data.
Could you please elaborate on expected inputs and outputs? What happens with data at 6 AM?
Please also have a look at the TagTot descirption linked below, especially notes about expected input and conversion.
Thanks for the response.
1. On the Advanced Tab: Can I use this:
2. Am using an Instantaneous Flow PI Point mapped to AF Attribute.
3. This is the cumulative Production
Thank you for the information.
Variable option for Output Time Stamp has been added in PI Server 2018, so apparently you are using older version.
I assume you put value of 85 as pctgood parameter, but if we omit toUnit parameter, syntax should look like:
TagTot( 'Instantaneous Rate'. 't+6h', '*' , "", 85)
Besides that, it looks fine in my opinion. However, I am not familiar with your process/environment so I would suggest to monitor the analysis and check if we are getting reasonable results.
The process starts 't+6h' and ends 't+30h' i.e 6:00 AM the next day. And the UoM is bbls/d.
Will the Expression be like this:
if InputTime >=0 and InputTime <6 Then TagTot('Instantaneous Rate','y+6h','*',85) else TagTot( 'Instantaneous Rate','t+6h','*',85)
Technically looks good to me, but still the expression is missing empty toUnit argument. So the final version would look like below:
if InputTime >=0 and InputTime <6 Then TagTot('Instantaneous Rate','y+6h','*', "", 85) else TagTot( 'Instantaneous Rate','t+6h','*', "",85)
Thanks for the response. We are currently using AF Client 2016.
With this AF Client, how can i write future timestamp to the AF Attribute Variable.?
Unfortunately it is not possible to use a variable as an output timestamp with AF 2016. I believe that is what you meant. Only option is to use Relative to Trigger Time.
That's fine. But If i use Relative to Trigger Time. On view the output value on PI Processbook, the timestamp is showing real time instead of a future timestamp.
Thank you for the screenshots. You need to add an offset after *+ which will determine when exactly in the future a value should be written. For example *+24h, so the calculated value will be written at the next day, same time.
Retrieving data ...