Multivariate Quality Control Charts Events

You can monitor data streams in real-time and customize how operators must respond to various chart alarms, with the Multivariate Quality Control module. The basic architecture of the Multivariate Quality Control module is the same as that of the Quality Control module, and the manner in which chart alarms are handled is identical.

For more information, see Quality Control Events.

List of Chart Events

The following table lists the control chart events currently supported by Statistica. Note that all functions have access to an object Obj, which is the automation object that contains the options for the current chart results dialog (MQUChartResults).

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) is finished.
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. Note that PartID is always 1 in the current implementation.
Private Sub SourceObj_SampleInHighlightedRuns(ByVal Obj As Object, SampleID() As String, PartID() As String, ByVal NewSample As Boolean, ByVal flags As Long);

Note: This function only applies to multiple stream charts

Called when a Multiple stream chart Sample belongs to a highlighted (out-of-control) run, check the value of flags for the specific type of chart where the violation occurred (flags=1 –Multiple stream Xbar or X Chart, flags=2 – Multiple stream R/S or MR Chart. Note that PartID is always 1 in the current implementation.
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 (flags=1 - T2, MCUSUM,.. chart, flags=2 - Generalized Variance chart). Note that PartID is always 1 in the current implementation.
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 (flags=1 - T2, MCUSUM,.. chart, flags=2 - Generalized Variance chart). Note that PartID is always 1 in the current implementation.