你好,
我有幾個測試參數,我需要使用 JMP 腳本計算它們的 GR&R 結果並存儲在變量中。 具體來說,我需要 GR&R 分析(如下所示)報告的值作為腳本中的變量。 我假設有一個函數,通過在腳本中調用它,我可以獲得這些結果(或其中一些結果)作為該函數的返回值。 我嘗試將“變異性測量儀”窗口保存為腳本,但內容似乎沒有幫助(複製如下)。 有人可以告訴我如何使用腳本將 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 )}
)
)
);下面是一個簡單的示例,從 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 文檔庫的腳本指南中,可在“幫助”下拉菜單下找到。