List of Chart Events
Following is a list of control chart events currently supported by Statistica. Note that all functions have access to an object called Obj, which is the automation object that contains the options for the current chart results dialog (QuaShewhartChartResults; see also Example 3).
Private Sub SourceObj_BeginAlarmChecking(ByVal Obj As Object, Cancel As Boolean) | Called before the alarm checking (for out of control samples, runs-violations, etc.) begins; SourceObj is the quality control chart analysis object. |
Private Sub SourceObj_EndAlarmChecking(ByVal Obj As Object) | Called after the alarm checking (for out of control samples, runs-violations, etc.) is finished. |
Private Sub SourceObj_ObsOutsideSpecs(ByVal Obj As Object, SampleID() As String, PartId() As String, ObsOffset() As Long, ByVal NewSample As Boolean, ByVal flags As Long) | Called when an individual observation (measurement) is found to be outside the current specification limits; the sample name of the sample that caused the alarm is available in the array SampleID, the part name for that sample is available in the array PartID; array ObsOffset contains the observation numbers ("offset") of the observations (that caused this event) inside the sample (i.e., to provide information about whether it was the first observation, second, etc.; if N=1, then this information is not available). |
Private Sub SourceObj_OnUpdate(ByVal Obj As Object, ByVal SampleIDFrom As String, ByVal PartIDFrom As String, ByVal SampleIDTo As String, ByVal PartIDTo As String) | Called when a chart updates, due to (relevant) changes in the input data. |
Private Sub SourceObj_RunsViolation(ByVal Obj As Object, SampleIDFrom() As String, PartIDFrom() As String, SampleIDTo() As String, PartIDTo() As String, TestType() As Long, ByVal NewSample As Boolean, ByVal flags As Long) | Called when a runs violation occurs; array TestType contains ID's for the type of runs violation that occurred (numbered starting from zero, following the order as these tests appear on the Run Tests dialog); note that the SampleID and PartID arrays contain information about the sample ranges to which the violation(s) apply. |
Private Sub SourceObj_SampleOutOfControl(ByVal Obj As Object, SampleID() As String, PartId() As String, ByVal NewSample As Boolean, ByVal flags As Long) | Called when an out-of-control sample event occurs, check the value of flags for the specific type of chart where the violation occurred (i.e., flags=1 - X (X-bar, MA..) chart, flags=2 - R or S chart). |
Private Sub SourceObj_SampleOutsideWarningLimits(ByVal Obj As Object, SampleID() As String, PartId() As String, ByVal NewSample As Boolean, ByVal flags As Long) | Called when an outside-of-warning-limits sample event occurs, check the value of flags for the specific type of chart where the violation occurred (i.e., flags=1 - X (X-bar, MA..) chart, flags=2 - R or S chart). |
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.