Statistica Version 14 now supports two Statistical option flags :
- ShowRunsTestMultiViolationsForSPCChartsNode: To allow creation of different markers for different types of Runs Violation and for Multiple Violations.
- 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"
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