我 需要使用 AFSDK 去讀取訊息 是否有人可以指導?
Would suggest checking below blog to get runtime parameters related to AF anlaysis. Sample scenarios section convers most the topics you are looking.
Querying Analysis Runtime Information using AFSDK
Thanks for your answer .
I hope it can be performed in a simple way,just get the errors message of the analyses immediate,Can you help?
If you are planning query runtime would suggest you AFSDK to get the statistics and errors for analysis as mentioned in the blog.
Offline you can check the errors logged in %ProgramData%\OSIsoft\PIAnalysisNotifications\Logs
Could you please provide more info on this requirement?
I create af analysis with af sdk,
I just need to confirm if there are any errors.
But I don't get any errors.
You need 2018 SP2 and follow Lal's first link.
Analysis errors "live" in the memory space of the PI Analysis Service (PIAnalysisProcessor.exe). These errors are never written to the AF Server. Prior to 2018 SP2, there was no way to query these errors from the PI Analysis Service and since they aren't written to the AF Server, there was no way to retrieve them using the AF SDK.
PI System Explorer has internal code that communicates directly with the service. It doesn't use the AF SDK to do this.
We also frequently encounter this type of error. I believe it's related to the Analytics service loosing track of changes. Configuration is OK, Preview in PI System Explorer is fine, but then the analysis service complains it cannot find the PI Points...
Only way to fix is to restart the Analytics service.
Which version are you running? We fixed an important WI concerning missing changes in 2018 SP3:
If you are running 2018 SP3, I'd recommend reaching out to support. We need to get to the bottom of this!
I know the issue from the past. We did upgrade some customers, but don't personally know if that resolved this issue. Thanks for the pointer! very helpful.
PS: well, except for the fact that the alert is nearly empty?
Retrieving data ...