脚本中的 GR&R 计算你好,
我有几个测试参数,我需要使用 JMP 脚本计算它们的 GR&R 结果并将其存储在变量中。 具体来说,我需要在 GR&R 分析(如下所示)中报告的值作为脚本中的变量。 我假设有一个函数,通过在脚本中调用它,我可以获得这些结果(或其中一些)作为该函数的返回值。 我尝试将 Variability Gauge 窗口保存为脚本,但内容似乎没有帮助(复制在下面)。 有人可以告诉我如何使用脚本将 GR&R 结果存储在变量中并打印出来吗?

Variability Chart(
Y( :"Check DUT Tx Output Power > Limit"n ),
MSA Metadata(
:"Check DUT Tx Output Power > Limit"n(
Lower Tolerance( -10 ),
Upper Tolerance( 8 ),
Tolerance Range( 18 )
)
),
Model( "Crossed" ),
X( :Operator, :UUT ),
Variability Analysis(
:"Check DUT Tx Output Power > Limit"n,
"Gauge R&R Report"n( 1 )
),
SendToReport(
Dispatch(
{"Variability Gauge Analysis for Check DUT Tx Output Power > Limit"},
"Variability Chart for Check DUT Tx Output Power > Limit",
OutlineBox,
{Close( 1 )}
),
Dispatch(
{"Variability Gauge Analysis for Check DUT Tx Output Power > Limit",
"Gauge R&R"},
"Variance Components for Gauge R&R",
OutlineBox,
{Close( 1 )}
)
)
);分析回复:脚本中的 GR&R 计算下面是一个简单的示例,它从 R&R 报告中提取数据向量,然后将其放入新报告中。您应该能够从这里开始获取所需的数据,并将其传递给脚本中的后续步骤。

names default to here(1);
dt = open("$SAMPLE_DATA/Variability Data/Gasket.jmp");
Variability Chart(invisible,
Y( :Y ),
X( :Operator, :Part ),
Model( "Crossed" ),
Historical Sigma( 0 ),
Analysis Type( "Choose best analysis (EMS REML)" ),
Connect Cell Means( 1 ),
Show Grand Mean( 1 ),
XBar Control Limits( 1 ),
S Control Limits( 1 ),
Mean of Std Dev( 1 ),
Gauge RR( 6, 0, 0, 0 ),
Gauge RR Report( 1 )
);
rp = Current Report();
// Get the Variation data from the Output Display
VariationText = rp["Gauge R&R"][StringColBox(1)] << get;
Variation = rp["Gauge R&R"][NumberColBox(2)] << get;
// Get the Summary and Gauge R&R Statistics
Stats = rp["Gauge R&R"][NumberColBox(5)] << get;
StatsText = rp["Gauge R&R"][StringColBox(5)] << get;
// Build a new report
NW = New Window("my report",
table box(
string col box("Meas Source", variationText),
number col box("Variation", variation)
),
spacer box(0,20),
table box(
number col box("", stats), string col box("", statsText)
)
);
rp << close window;

显示对象的读取和操作记录在 JMP 文档库的脚本指南中,可在帮助下拉菜单下找到。