Guys, how do we create a fixed set of data (for example: a Hydrocarbon Phase envelope) as a background for an XY Plot in PI ProcessBook?
You can create two different XY-plots, and place the Hydrocarbon Phase envelope plot behind the other one. Then remove the background and other non-relevant information from your main plot, and the Hydrocarbon Phase envelope will become visible.
You may specify a fixed time period for the characteristic curve, I've implemented a circular bounding area in my curve with 360 X- and Y-values in an AFTable, and then I look up these using table-lookup data references where I specify the time column. In the AFTable I have distributed these 360 values across 60 minutes in a fixed period of time (1-jan-2000 from midnight to one o'clock), and then I just make sure to specify that time period in ProcessBook's XYPlot definition for that curve. Works like a charm!
Take a look at this blog post explaining this, together with code examples:
Overlay a characteristic curve in an XY Plot
Hi Asle, thank you so much for your help.
I'm having trouble creating and configuring the Characteristic Envelope Data DB via the Administrative Tool.
I'll check the other options as well.
Here's how I did it. I used Excel with formulas to generate the X and Y values for the 360 degrees needed to draw my circle, and then put that into an AFTable. Then I mapped the two coordinates to table-lookup attributes, and specified the time column (TC=Time). Then it'll work when you specify that time period in your XY plot.
If you can generate the characteristic curve with coordinates in Excel this should be fairly simple to accomplish.
OK got it.
Really awesome method, Asle - thanks for sharing!
Retrieving data ...