Is there SDK and/or API to create PI Vision display's objects programmatically?
Hi K.T Huang
Please refer below links for PI Vision customization.
Customizing PI Vision with Extensibility
Github: PI-Vision-Custom-Symbols/Community Samples/OSIsoft at master · osisoft/PI-Vision-Custom-Symbols · GitHub
Creating PI Vision Symbols that Interact with Each Other
Thanks for the info.
I am new on PI Vision and programming.
I will go through the links provided to learn more.
We have user utilities (written with VB) that will spawn PI PDI trends display dynamically with given trend tag names and parameters.
We are researching how to launch PI Vision display objects dynamically (primary trends) with a given list of PI tags and trend parameters from a VB and/or C# built utilities.
If you wish to cycle a single same display with just a different tagnames and assets, then AF server already provides the template to accomplish this. We highly highly recommend all customers to use templates!
PI Vision supports URL parameter so that you can selectively supply the AF asset information: URL parameters reference
Otherwise, the PIVision's SQL backend database needs to be closely examined, which we do not provide support for.
You can inject the displayProvider in a custom symbol. Then invoke the addSymbol method. The signature is below.
addSymbol(symbolOrTypeName, x, y, dataSources, config)
symbolOrTypeName: Name of the symbol type. For trend, it is 'trend'
x: Left position of symbol
y: Top position of symbol
dataSources: Array of data sources. e.g. pi:\\servername\tagname
config: extra configuration settings. can be null i think.
Now this got me thinking if i could generate an entire display based on a display definition in AF... Hmm...
If you just need a trend, you could use the AdHoc trend feature: https://livelibrary.osisoft.com/LiveLibrary/content/en/vision-v2/GUID-79323609-909A-4D03-B246-55B7368C0BAD
Retrieving data ...