I'm looking to get the cpk, cp, ppk, and pp to show the correct values in the chart legend. Below is my attempt. Please help.
Thank you,
Steve S.
-------------------------------
///abbreviated aspx page
////////////////////////////////////////////////
///abbreviated aspx.vb page
stat.Chart = cfxDetailed
stat.SelectedSeries = 0
stat.IgnoredSeries = New Integer() {1, 2, 3, 4, 5, 6, 7}
Dim mean As StudyConstant = stat.Studies.Add(Analysis.Mean)
mean.Visible = False
mean.Color = Color.Red
mean.LineWidth = 2
sigma1 = stat.Studies.Add(Analysis.Sigma1)
sigma1.Visible = False
sigma1.Color = Color.LawnGreen
stat.Calculators(0).Sigma = sigma1.Value
stat.Calculators(0).Lsl = mean.value - (3 * sigma.value) /////sigma.value is returning nothing! PROBLEM
stat.Calculators(0).Usl = mean.value + (3 * sigma.value)
Dim cpK As Study = CType(stat.Studies.AddTitle("Cpk"), StudyCustom)
cpK.Bold = False
cpK.Indented = True
Dim cpkVal As Double = stat.Calculators(0).Get(Analysis.Cpk)
cpK.Value = Convert.ToDouble(cpkVal.ToString("0.000000000"))