Show prediction for next x minutes in Trend in PG2
My Code calculates the predicated process outcome for the next minutes based on the internal Process Simulation. Now i want to show these Values together with the historic Values (from Log Configurations) for the Operator.
However the PG2 Trend Element only allows to connect a "HistoryReference" which is an OPC Property basically. Obviously i cannot just write the Predicted Values as History Log as these are still changing dynamically until time = 0.
Is there any better solution than to overlay some lines and points onto the actual trend picture to show both history and predicted Values in one Trend?
As you mentioned that the process outcome for the next minutes is being calculated in code. Write this value to a Variable[Make sure the attribute of the variable should be retain and not hidden] now create the log configuration for the variable.
Now you can create a Trend Template or you can use the existing template with two Rows. You can plot the current process value in one row and the variable in the second row.
So your trend will give both the historical values at any particular time.
I hope this will serve the purpose.
Please Write back in case you need further clarification or more detailed answer.