Hello,
I am writing a script to add specification limits to a control chart. The script I am using to do this is below. This is perfect when I have a LSL, avg and USL but if I just have an LSL and USL, for example, JMP calculates an average and adds it to the control chart. Is there a way to prevent this auto-calculation in cases when I don’t specify all 3 spec limits?
dtlimits = Open();
lm = dtlimits << get as matrix;
Close( dtlimits, nosave );
FinalDataSet << Control Chart(
Sample Label( :DOM ),
KSigma( 3 ),
Chart Col(
:VALUE,
Levey Jennings( LCL(lm[1]),
AVG(lm[2]),
UCL(lm[3]),Test 2( 1 ), Test 3( 1 ), Test Beyond Limits( 1 ) )
)
)