How to enable Multiple Runs Violation Markers in SPC Charts Node?

How to enable Multiple Runs Violation Markers in SPC Charts Node?

book

Article ID: KB0073594

calendar_today

Updated On:

Products Versions
Spotfire Statistica 14.0 and higher

Description

How to enable different Runs Violation Markers in Statistical Process Control (SPC) Charts Node?

User-added image

By default, Statistica displays the same Runs Violation Marker but add a number indicating the type of Runs rules violation and have no number to indicate a multiple Runs rule violation as shown below :

User-added image

NOTE: Portions of the graphs have intentionally been blurred to keep the focus on the functionality described in the article.

Issue/Introduction

How to enable Multiple Runs Violation Markers in Statistical Process Control (SPC) Charts Node?

Resolution

Statistica Version 14 now supports two Statistical option flags :
  1. ShowRunsTestMultiViolationsForSPCChartsNode: To allow creation of different markers for different types of Runs Violation and for Multiple Violations.
  2. ShowRunsTestIDInAlarmResultsForSPCChartsNode: To show or hide the Runs Test ID on the Alarm Type column of alarm results spreadsheet.
The flags can be set in two ways :
1. Via Node :

If you want to ensure the option is set before you run the SPC Chart node explicitly everytime, you could use an SVB Code node before the SPC charts node and  paste the code below or copy the node named "Switch ON Both Flags" from the example attached to this article.
 Option Base 1 Const ID_ENTRY_ANALYSIS_SPCCHARTS_RUNSTEST_MULTIPLE_VIOLATIONS = 56237 'Statopts entry to turn on multiple violations. Const ID_ENTRY_ANALYSIS_SPCCHARTS_RUNSTESTID_IN_ALARM_RESULTS =  56238 'Statopts entry to turn on runs violation ID on alarm results Private Sub SubsetNode( _     DataIn() As InputDescriptor, _     DataOut() As InputDescriptor) '================================================================== ' 1. Checking the InputDescriptor DataIn(). '==================================================================     Lower = LBound( DataIn )     Upper = UBound( DataIn )     ReDim DataOut(lower To upper) '======================================================================================= ' 2. Send the Input Descriptor value as Downstream document (Task 1) '=======================================================================================     For I = Lower To Upper         Set DataOut(I)=DataIn(I)        Next I '========================================================================================================= ' 3. Switch ON, '    1. ID_ENTRY_ANALYSIS_SPCCHARTS_RUNSTEST_MULTIPLE_VIOLATIONS Statopts Option for tracking multiple '       runs violations On the runs tests Type Output Spreadsheet. '    2. ID_ENTRY_ANALYSIS_SPCCHARTS_RUNSTESTID_IN_ALARM_RESULTS Statopts Option for showing runs violation '       ID on the Alarm results spreadsheet. '=========================================================================================================     Application.Option.StatOpts(ID_ENTRY_ANALYSIS_SPCCHARTS_RUNSTEST_MULTIPLE_VIOLATIONS) = 1     Application.Option.StatOpts(ID_ENTRY_ANALYSIS_SPCCHARTS_RUNSTESTID_IN_ALARM_RESULTS) = 1 End Sub 
This will ensure that the option is set every time the workspace is executed.

2. Via StatOpts.xml :  The flags are a per user per machine setting. So if you'd rather set it as a user preference for some users rather than it be part of a workspace, this option can be set via the Statopts.xml file.

Locate the Statopts.xml in the user store and add the below mentioned flags as per user preference within the Analysis tag as shown below :
 ShowRunsTestIDInAlarmResultsForSPCChartsNode="1" ShowRunsTestMultiViolationsForSPCChartsNode="1"
User-added image

If this has to be propagated to other user's preferences, refer to the referenced article: https://support.tibco.com/s/article/How-to-propagate-Statistica-options-with-StatOpts-xml-and-DefOpts-xml

 

Additional Information

https://support.tibco.com/s/article/What-is-the-StatOpts-xml-file-and-where-is-it-located
https://support.tibco.com/s/article/How-to-propagate-Statistica-options-with-StatOpts-xml-and-DefOpts-xml

Attachments

How to enable Multiple Runs Violation Markers in SPC Charts Node? get_app