Download QCSPCChart SPC Control Chart Tools for - Quinn

Transcript
SPC Attribute Control Charts 255
primaryuppercontrollimit.ControlLimitText = "UCL"
The second way to set the control limits is to call the AutoCalculateControlLimits
method. You must have already added a collection of sampled data values to the charts
ChartData SPC data object before you can call this method, since the method uses the
internal ChartData object to provide the historical values needed in the calculation.
[C#]
// Must have data loaded before any of the Auto.. methods are called
SimulateData();
// Calculate the SPC control limits for both graphs of the current SPC
this.AutoCalculateControlLimits();
[VB]
‘ Must have data loaded before any of the Auto.. methods are called
SimulateData()
‘ Calculate the SPC control limits for both graphs of the current SPC
Me.AutoCalculateControlLimits()
You can add data to the ChartData object, auto-calculate the control limits to establish
the SPC control limits, and then continue to add new data values. Alternatively, you can
set the SPC control limits explicitly as the result of previous runs, using the previously
described ChartData.SetControlLimitValues method, and add new sampled data values
to the ChartData object, and after a certain number of updates call the
AutoCalculateControlLimits method to establish new control limits.
[C#]
updateCount++;
this.ChartData.AddNewSampleRecord(timestamp, samples);
if (updateCount > 50) // After 50 sample groups and calculate limits on the fly
{
// Calculate the SPC control limits for the X-Bar part of the current SPC chart
this.AutoCalculateControlLimits();
// Scale the y-axis of the X-Bar chart to display all data and control limits
this.AutoScalePrimaryChartYRange();
}
[VB]
updateCount += 1
Me.ChartData.AddNewSampleRecord(timestamp, samples)
If updateCount > 50 Then ' After 50 sample groups and calculate limits on the fly
' Calculate the SPC control limits for the X-Bar part of the current SPC chart
Me.AutoCalculateControlLimits()
' Scale the y-axis of the X-Bar chart to display all data and control limits
Me.AutoScalePrimaryChartYRange()
End If
Need to exclude records from the control limit calculation? Call the
ChartData.ExcludeRecordFromControlLimitCalculations method, passing in true to
exclude the record.