I am working on a script to create a control chart, save the summaries for Moving Range average, and close the summary window and control chart after. I want to make sure that the summaries table is invisible, but currently the table shows up, and then closes. This is a problem for me because I need to do this over 100 times, and having 100 summary tables flashing open and closed is likely to give me a seizure.
Is there a way I can make the Summary table invisible, or a better way to mine the moving range average data from a control chart?
MR_AVG = function({s},
MR = dt4 << Control Chart(
Sample Label( :Lot Number ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col( column(dt4, s), Moving Range ),
"invisible"
);
MovingRange = MR << save summaries(invisible(1));
mravg = column("average moving range" || " " || s)[1];
MR << close window;
close( no save);
);