Any perfmon counters you could monitor?
1 of 1 people found this helpful
There are a few different ways to check if the analysis service has completed spinning up all enabled analyses.
1. Message log
By default, logs are located in %programdata%\OSIsoft\PIAnalysisNotifications\Logs. The pianalysisprocessor-log.txt message will have a message similar to this when the calculation engine will start processing analyses:
2017-07-12 16:08:48.0379|INFO|ANCalculationEngine|Evaluation pool and time rule managers successfully started. Calculation engine has started running analyses at 12-Jul-17 16:08:48.006.
2. Performance counters
You can also look at the performance counters for the service. Assuming you have at least one analysis evaluating, Evaluation Count and AFValues Sritten will all count up when the service beings to start. Analyses Running will also increase (but this will fluctuate if analyses are in error).
3. AF SDK
I don't know if there is a way to programmatically check if the service is fully running. You might want to try the AFAnalysisService.CanQueue method. https://techsupport.osisoft.com/Documentation/PI-AF-SDK/html/M_OSIsoft_AF_Analysis_AFAnalysisService_CanQueueCalculation.htm
Let me know if those work for you.