creating statistical process control is really hard. you need to perform first on collecting and analyze data. then display the process of statistics and histograms etc. if you want to know more here's the link that i got http://read.pudn.com/downloads88/sourcecode/others/337374/3msw64-65_76.pdf. hope this would help.