




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















Chris Fiel Robert Kubo Andreas Schuster Ryan Smith
[email protected] [email protected] [email protected] [email protected]
October 26, 2008
Statistical Process Control (SPC) is an important part of any manufacturing organization that needs to ensure its production lines are producing non- defective units. It allows for a means of keeping processes in control and going forward with future successful manufacturing. It provides the ability to notice process variation by creating a baseline data set from a process that is currently deemed in control and comparing future data against it to see if the process remains stable. The main goal of this project is to implement a software program, which allows those users who are familiar and non-familiar alike with SPC, to use SPC calculations for processes which they oversee. The user will be able to input a baseline data set, automatically create control limits, and check new data against those limits. He will also be able to to run different statistical tests to help address noticeable problems in the process. Considering the wide range of data structures that C++ provides, we found that using this object oriented language would be efficient for our design. By using C++ native data structures to store and manipulate data, our team will be able to provide a solid base to the users of our software. In order to achieve this goal, the project team has analyzed the problem, and began preliminary design. This document will address all aspects of the software design process. The next steps will be the actual implementation and the testing of the implemented software.
4 Checked Points.......................... 10 5 Task Breakdown......................... 25 6 Task Allocation.......................... 25 7 Course Deadlines......................... 25 8 Team Schedule for Development................ 26
CL.............. Center Line CSV............. Comma Separated Value LCL............. Lower Control Limit R................ Range of Observation Values Rbar............ Average of the Sample Range of Observation Values SPC............. Statistical Process Control UCL............. Upper Control Limit Xbar............ Average Observation Value Xbarbar......... Average of the Sample Average Observation Values
The software development team will implement a system which will take a user inputted baseline data set and create upper and lower control limits for the range and average of the data. After these limits have been found, the user will be able to input a second file which will be tested against the control limits. A series of tests will be used to determine if there are special causes of variation in the process. After testing, the software will notify the user of all calculated conditions as well as give an option to create a log file for later use. In the process of finding an appropriate project, we were not inspired by any former homework assignment. One of our team members encoun- tered SPC in one of his classes. Since it is a common engineering problem we thought, it would be useful to write a program which automates the calculation of control limits for a stable process. It is our mission to provide you with the best possible explanation of the material to be covered in the following pages.
Table 1 is standardized to different numbers of subgroup observations. A sample consists of a number of observations in a subgroup, this will be developed more as we progress through the analysis. By successfully creating a hard-coded class structure for these constants the user will be able to simply enter in the number of observations and the values for each will be initialized accordingly. We will have to do some interpolation to provide a better range of constants when we implement this in our program. Note: Rbar, Xbarbar, R˜, X˜˜ will be used interchangeably throughout this analysis. Secondly, we will use simple formulae which use these constants accord- ingly: For calculations of R Limits:
U CL = D 4 · Rbar (1) CL = Rbar (2) LCL = D 3 · Rbar (3)
For calculations of X˜ limits:
U CL = X˜˜ + A 2 · Rbar (4) CL = X˜˜ (5) LCL = X˜˜ − A 2 · Rbar (6) (7)
These formulae will be present in the implementation portion, while the values of data members of a class will be stored as such. For each set of input data, there will be unique control limits. Also note that these formulae only work for 3-sigma calculations. Continuing on, with the X˜ limits there is a zoning scheme which divides the UCL and LCL into 6 zones, 3 above the CL and 3 below. 3-sigma control limits on X˜ consist of:
Sample number x1 x2 x3 x 1 0.98 0.99 0.982 1. 2 0.99 0.995 0.987 0. 3 1 0.998 0.986 1 4 1.1 0.985 1 1. 5 1.15 0.982 1.01 1. 6 1.09 0.987 1.02 0. 7 1.08 0.986 1.08 0. 8 1.07 1 1.07 0. 9 1.06 1.01 1.06 1. 10 1.03 1.02 1.03 1.
Table 2: Sample Data
The user would input n = 4 into the console. Because there are 4 obser- vations in the subgroup of each sample. Our software would then initialize the standardized constants in our class:
D4 = 2. 282 (8) D3 = 0 (9) A2 = 0. 729 (10) d2 = 2. 059 (11)
Then we ask the user which tests they would like to test their data
against(assume all for this example). Calculating X˜˜ and R˜ gives:
X˜˜ = 1. 0288 (12) R˜ = 0. 0811 (13)
Out of 33 points tested:
Each of the tests we will implement are shown in the example above.
Point
1 1.3 Extreme Point 1.23 Extreme Point 1
0.95 Linear Trend 0.94 Linear Trend
1.035 8 pts above CL 1
1 0.99 15 pts in zone c
1.065 8 points avoiding zone c
Table 4: Checked Points
Figure 1: Use Cases
2.4.1 Input Number Subgroup Observations
Summary: The program asks for an integer value for number of subgroup observations. Actor: User Pre-conditions: The program should be able to receive input from a keyboard. Description: The user inputs the number of observations in the subgroup data they will provide, and the program continues on. Exceptions: No input: User does not input a value on the key- board, program waits until an input is entered. Invalid input: User does not enter a valid input value, program asks for input again. Post-conditions: Program execution continues; asks for test selection.
2.4.2 Input Tests For Special Causes Of Variation Of A Process
Summary: The program asks the user if they would like to run all or a selection of tests availiable Actor: User Pre-conditions: The program should be able to receive input from a keyboard. Description: The user either inputs ”all(a)” which continues exe- cution or ”select(s)” which asks which tests will be run, then continues execution. Exceptions: No input: User does not input a selection on the keyboard, program waits until a selection is made. Invalid input: User does not enter a valid input value, program asks for selection again. Post-conditions: Program execution continues; asks for input file to compute baseline control limits.
2.4.5 Create Logfile Of Data Manipulation
Summary: The program asks the user if they would like to cre- ate a logfile of the results including: UCL/CL/LCL for R and X and tests counted.˜ Actor: User Pre-conditions: The program should be able to receive input from a keyboard. Description: The user inputs yes(y) or no(n) into the program, yes will create the logfile and exit, no will exit without creating the log. Exceptions: No input: User does not input a selection, program asks again. Invalid input: User inputs a wrong selection, pro- gram asks again. Post-conditions: Program completes execution; program exits.
The main actor in the sequence diagram is the User. He communicates directly with the MainInterface class. First, the user begins the program, which prompts him for a number of samples. When the user enters an invalid number, the interface rejects it and requests a valid number. When the user has entered a valid number of observations, the Interface initializes the Data Processor member with the number of observations per sample, which creates the InputData member of the processor. It then sets the ObservationCount, and the main interface requests the base control line file from the User. If the user enters an invalid file, the main interface requests it again until a valid file, that is a .csv comma separated value file that exists, and then sets the BaseCLFileName in the processor. The data processor parses the data and sends it to InputData, which generates the Xbar and R until the end of the file is reached, and then calculates the Xbarbar and Rbar. The data processor then asks the main to request the experimental obser- vation values from the user. If the user provides an invalid file, it continues asking until the user provides a valid file. When that occurs, the main inter- face sets the experimental observation file name in the data processor, and that parses the data. When the processor finished parsing, it asks the main to get the user to determine which tests the user would like run on the data. The user may run all or any combination of the tests. When that answer has been provided, the data processor runs creates an output data object to accept the results of the tests. When that has been established, it sets the UCL, LCL, CL, Range, and Xbar values.
As the tests complete, the results are saved. When all are finished, the UCL, CL, Range, and Xbar are recovered, and all of the data is written to a file on the hard drive. When that is done, the OutputData and InputData are destructed, the data processor informs the Main Interface all the tests have been completed, and is destructed. The main interface then parses the results and prints those to the screen before the execution completes.
Figure 2: Sequence Diagram
The first state the main program of the SPC enters is requesting the number of observations per sample. While in this state, it accepts any number.
time a point falls outside the C range, the test resets. When no more data is available the state completes. When all of the above tests have been completed, testExperiment exits to writeResults. On entry, writeResults saves them in a file on the user’s machine, and returns them to the user. Then the program ends.
Figure 3: Main Statemachine