Download User Manual - Quinn

Transcript
138 SPC Variable Control Charts
//
//
//
//
getCurrentSampleSubgroupSize is a fictional method that gets the
current number of samples in the sample subgroup. The value of N
can vary from sample interval to sample interval. You must have a
valid sample value for each element.
N = getCurrentSampleSubgroupSize();
// Size array exactly to a length of N
DoubleArray samples = new DoubleArray(N);
// time stamp initialized with current time by default
GregorianCalendar timestamp = new GregorianCalendar();
// Place sample values in array
// You must have a valid sample value for each element of the array size 0..N-1
samples.setElement(0,0.121);
// First of five samples
samples.setElement(1, 0.212);
// Second of five samples
.
.
.
samples.setElement(N-1, 0.133);
// Last of the samples in the sample subgroup
// Add the new sample subgroup to the chart
this.getChartData().addNewSampleRecord(timestamp, samples);
Measured Data and Calculated Value Tables
Standard worksheets used to gather and plot SPC data consist of three main parts.
 The first part is the header section, identifying the title of the chart, the monitored
process, the machine operator, part number and other important information specific to
the chart.
 The second part is the measurement data recording and calculation section, organized as a
table where the sample data and calculated values are recorded in a neat, readable
fashion.
 The third part plots the calculated SPC values for the sample group variables as a SPC
chart.
The chart includes options that enable the programmer to customize and automatically include
header information along with a table of the measurement and calculated data, in the SPC chart.
The following methods enable sections of the chart header and table:
:
setEnableInputStringsDisplay
setEnableCategoryValues
setEnableCalculatedValues
setEnableTotalSamplesValues
setEnableNotes
setEnableTotalSamplesValues
setEnableTimeValues