can anybody give some hints on how to get the following:
from the AF SDK ?
In the screen shot you provided, the SQC results were generated by you pressing the "Evaluate" button in PI System Explorer. By design, this is a manual process for the purpose of checking the validity of your analysis during the configuration phase. As such, the results are calculated on the client side using the latest values (snapshot) and the results are not persisted. The software assumes that once you have verified the configuration of your analyses, you would schedule them to run automatically either when there's a new input value, or periodically on a clock schedule.
As stated already, the recommendation is for you complete the configuration, schedule the analysis, and save the SQC results to an attribute with a PI Point Data Reference and thereafter you can query the attribute with the PI Point Data Reference for the results. This has the added benefit of allowing you to query the history of the SQC results.
No idea how to do this using AFSDK but you can use the SQC Analysis to any one of the following:
1. Save the SQC result (Outside Control, Outside 2 signa, etc) to AF Attribute\PI Point
2. Generate an Event-Frame with the result
With any of the above options I assume that you will be able to use AFSDK to query the results. (Link1 , Link2)
Thank you, I was actually testing the recommendation 1) .
Thank you Stephen, that's cristal clear. I was actually implementing Moshes' recommendation 1. and my only doubt was whether the same result would have been possible in one single step or not, by querying the model for the current status of the AnalysisSQC plugin.
I will add the PI Point Data Reference.
Retrieving data ...