I'm sure you can do this in AF. I have not tried to do it directly, but this is what Process Pluggins does, which is a third party develop product. I think you would want to use the table feature in AF to contain your data and then create attributes that query the table to produce the plots.
You could download the v-Campus training course in the training center, which include a part on how to make a customer data reference for AF server.
XY plot is to show the values of 2 or more tags at the same timestamp. Therefore, you could use PI SDK + AF SDK to do it, or if you have AF SDK 2.5, PI SDK is not needed.
The method could be following, please use it as a reference:
1. open a customer data reference template
2. follow the course introduction to learn how to make a new one
3. in the right part of the template, you could define one tag as X plot, and get the record values with a time range
4. get the timestamps of these values
5. using these timestamps to get the interpolate values of other tags as Y plot
With versions of AF prior to 2012, it is not possible to directly source the non time series data from AF. That function is available in AF 2012.
Using AF sourced data, an Access database, VBA code and multiple examples from other areas in vCampus, the following has been accomplished:
Create an XY plot using time-series data using AF templates and elements
Dynamically create an ODBC DSN and dataset to an Access database on a network share for the reference curve
Dynamically create the XY plot for the reference curve using the Access data
When the user select a different element, automatically adjust the reference curve accordingly.
I plan to post the code with comments in the future.
Posting your solution would be a fine move and pretty much appreciated.
You can either post code snippets or attach files to your post or both. Please let us know if you require assistance.
Alex, any progress on this? We were just starting something like this earlier this morning.
We checked a while ago, how many users sign up for email notifications and found this to be a very small number. I've contacted Alex by email to make him aware that you are interested in details about their implementation.
Hi, did any body implement this already?