I have a large data table with multiple columns. Of these many columns, I specifically want to build a set of Control Charts for "TPeel_Avg" separating out by "SubPad" and "TestQual1". I know how to build a control chart using Analyze --> Quality and Process --> Control Chart --> IR, but I want to automate this so that I can save it in a Query Builder post-query script. Whenever I try and copy the scipt which was saved to the subject data table to the Query Builder post-query script I get errors. Any help?
New Window( "RHM_Query 2 - Control Chart",
V List Box(
Control Chart(
Sample Label( :UpdateStamp ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col( :TPeel_Avg, Individual Measurement, Moving Range ),
Where( :SubPad == "X" & :TestQual1 == "A" )
),
Control Chart(
Sample Label( :UpdateStamp ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col( :TPeel_Avg, Individual Measurement, Moving Range ),
Where( :SubPad == "X" & :TestQual1 == "B" )
),
Control Chart(
Sample Label( :UpdateStamp ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col( :TPeel_Avg, Individual Measurement, Moving Range ),
Where( :SubPad == "Y" & :TestQual1 == "A" )
),
Control Chart(
Sample Label( :UpdateStamp ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col( :TPeel_Avg, Individual Measurement, Moving Range ),
Where( :SubPad == "Y" & :TestQual1 == "B" )
),
// ...etc.
)
)