This new feature requires Asset Analytics 2018 SP2, PI AF Server 2018 SP2 and AF SDK 2018 SP2. I just wanted to make that a little clearer. Prior to 2018 SP2, analysis runtime information was not exposed in the AF SDK. Only PSE could retrieve runtime information.
Hi, I am trying to get the analysis associated with a particular notification rule using the sdk, but I cannot find a straightforward way.. Let's say I have an AFElement el. I can get hold of its notification rules using el.NotificationRules, and its analyses using el.Analyses, but is there a way from el.NotificationRules to get its…(Show moreShow less)
AFEventFrameSearch.ParseQuery() is obsolete with AF SDK version that came along with "PI 2018 SP2a" (=22.214.171.12450), so same functionality can be achieved with IList<AFSearchTokenBase> tokens = AFSearch.ParseQueryString(notification.Criteria); AFSearchTokenBase token = tokens.FirstOrDefault(t => t.Filter == AFSearchFilter.AnalysisName); if…
Hi All, I have made an analysis that should output a NoOutput value to a reference tag, when a pump readback value is 0%. You can See the highlighted pump is showing 0%. When this is true, the Cu (Running Value tag) should read a dash. (See below) However it's not showing this. Do I maybe have the wrong value type? Or Otherwise is…(Show moreShow less)
You should have named it Die-Die-Die!! That would have been hilarious! To Rhys Kirk's point, I am glad that if there is a value excluded that we can bail on a calculation now. That was painful to try to work around.
I need a way to export Event frame details with acknowledgements and annotations in a report format. Naturally, excel Datalink seems to be the best way for exporting event frame details and acknowledgments but I don't see any options for exporting the associated annotations.
Hi all, I'm having trouble while using AFCalculation.PercentTrue. I have a process that analyzes performance equations and searches for activations. It runs fine for a few hours, but at some random point in time, it throws this error: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication…(Show moreShow less)
If you are trying to configure Notifications for an existing SOAP web service, you can see this document. https://livelibrary.osisoft.com/LiveLibrary/content/en/server-v12/GUID-21FDAD74-8F98-4F82-9EF9-C21AE27CBAED However, if you are trying to develop a new web service for Notifications, then I would strongly advise you to use REST.
We have a distributed PI system with PI servers installed in remote locations. Frequently I have problems getting connected to the remote server & experience the [-10734] PINET: Broken Connection.error. SMT typically works fine, but Excel plugins & SDK code is where I have problems. Anyone experienced similar? Where could I look for…
Hello Fahd, I see you've created this document out of this question which is from 2014. We have migrated from our former Technical Support web to our new Customer Portal earlier this year. Due to this links to Knowledgebase articles do not work anymore which is unfortunate. By creating this Document you've duplicated outdated content. Did…
There is a blog post that shows how to use AFSDK with Python. PI and Python? PIthon! (Rafael Borges created it) Sometimes I provide training courses in OSIsoft Japan office and some customers wanted to use python to get data from PI. For connecting PI from python, PI Web API can be used. Using PI Web API with Python Though AFSDK is also works as…(Show moreShow less)
Hi, I have this problem when i run the python code from a computer user (Windows User) with insufficients privileges to access the PI data. I need a windows user with sufficients privileges to access certain PI data.