将 R&R 报告测量到数据表中我需要为许多系统创建仪表 R&R 研究,如何将仪表 R&R 报告的结果导出到数据表中。
可以创建一个脚本来将重复性、再现性……数据提取到表中吗?
大规模定制分享和交流结果回复:将仪表 R&R 报告写入数据表谢谢。 我也确认了元数据排序。 我查看了 V17 脚本指南(pdf 和帮助),但没有找到您引用的代码片段。 无论哪种方式,我现在都可以从之前加载的元数据中提取规格限制(PS:我只导入 LSL 和 USL),并且该方法完美运行。 一个很好的量具数据综合表。 我只需要从高到低添加 R&R 排序即可完成。 非常感谢您的帮助。
colList = dt << get column names;
// Create a starter data table for placing all of the results in
dtFinal = New Table( "Final Results Table" );
Current Data Table( dt );
Limits={};
ncols = N Items(colList);
For( i = 3, i <=ncols, i++,
Limits=:Column(colList[i])<<GET property=""></GET><BR />dtReport = dtFinal << Split(<BR />Split By( :"~AIAG abbrev"n ),<BR />Split( :"% of Tolerance"n ),<BR />Group( :Y ),<BR />Output Table( "Gauge R&R Report" ),<BR />Remaining Columns( Drop All ),<BR />Sort by Column Property<BR />);<BR />Close( dtFinal, nosave );回复:将仪表 R&R 报告写入数据表这是遗留代码。 在版本 17 及更高版本中,这已被编辑 MSA 元数据所取代。
如果您查看 17 之前的 JMP 版本,您将在脚本索引中找到以下信息:
obj<< "仪表 R&R"n( K 西格玛、公差、LSL、USL )
计算并显示仪表 R&R(再现性和重复性)摘要报告。指定公差或规格限。
回复:将仪表 R&R 报告写入数据表我找不到有关这些 Varability Chart() 参数的任何文档。 我为这个遗漏输入了一个错误。
回复:将仪表 R&R 报告写入数据表此示例作为脚本解决方案的起点非常有用,但没有解释下面一行中传递的参数。(6,0,0,0),影响分析输出以及计算值,但我无法找到这些参数的定义或描述位置。
Name( "Gauge R&R" )(6, 0, 0, 0),
看来第二个参数会影响报告中包含的容差百分比(0= 不包含此列,1= 包含此列)。我可以在哪里了解这些设置值及其影响?
回复:将仪表 R&R 报告写入数据表太感谢了!我遇到了问题
报告(变异性图表[1])[“GaugeR&R”][表格框(1)]<<使组合数据表只会保存第一列,我现在知道它应该如何完成回复:将仪表 R&R 报告写入数据表这是我认为与您想要的非常接近的示例
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Variability Data/wafer.jmp" );
// Add some new columns to allow for the sample data
// table to look somewhat like your table
For( i = 2, i <= 5, i++,
dt << New Column( "Y" || Char( i ), formula( Random Uniform( 80, 120 ) ) )
);
colList = dt << get column names( string, continuous );
// Create a starter data table for placing all of the results in
dtFinal = New Table( "Final Results Table" );
// Loop across all of the columns and extract the required data
For( i = 1, i <= N Items( colList ), i++,
vc = dt << Variability Chart(
invisible,
Y( Eval( colList[i] ) ),
X( :Operator, :Wafer ),
Model( "Main Effect" ),
Historical Sigma( 0 ),
Name( "Gauge R&R" )(6, 0, 0, 0),
Name( "Gauge R&R Report" )(1)
);
// Point at the report table you are interested in, and
// pass the message to it to create the data table from it
dtRR = Report( vc )["Gauge R&R"][Table Box( 1 )] << Make combined Data Table;
dtFinal = dtFinal << concatenate( dtRR, append to first table( 1 ) );
Close( dtRR, nosave );
);
// Make the transposed data table
dtReport = dtFinal << Split(
Split By( :Measurement Source ),
Split(
:Name( "~AIAG abbrev" ),
:Name( "Variation (6*StdDev)" ),
:Name( "~AIAG Label" ),
:Name( "which is 6*sqrt of" )
),
Group( :Y ),
Sort by Column Property,
Output Table("Guage R&R Report")
);
另外,从“这就是你如何做 X”的角度来看,《脚本指南》并不是一本真正好的示例书。这是一份旨在教授语言的文件。因此,我建议您花更多时间使用它,您将学习如何使用它的组件来生成脚本。
回复:将仪表 R&R 报告写入数据表感谢您的及时回复,
我正在尝试创建一个脚本来遍历表 1 中的所有列以生成 GRR 数据并将它们移动到数据表 2 中,然后生成图形 XY 图来模拟下面的客户图。
数据表1

数据表2

最终图表

现在我正在一步一步地进行,我可以生成 GRR,新的数据驯服,但我坚持如何将报告中的值放入 GRR 表中。
我是一个十足的菜鸟,试图阅读脚本手册...但找不到具体的示例...谢谢
/////////////////////////////////////////////////////////// //////////////////////////////////////////////
Variability Chart(
Y( :CONT_VCC_mV ),
X( :X_Y ),
Model( "Main Effect" ),
Historical Sigma( 0 ),
Name( "Gauge R&R" )(6, 0, 0, 0),
Name( "Gauge R&R Report" )(1),
SendToReport( Dispatch( {}, "Gauge R&R", OutlineBox, {Set Title( "Gauge R&R" )} ) )
);
dt = New Table( "GRR_TABLE" );
dt << New Column( "TEST_NAME" );
dt << New Column( "Repeatability" );
dt << New Column( "Reproducibility" );
dt << New Column( "Guage R&R" );
dt << New Column( "Part Variation" );
dt << New Column( "Total Variation" );
dt << Add Rows( 1 );
// Get test name
x = Column( "TEST_NAME" );
x[1] = "CONT_VCC_mV"; // How to get this from Chart...
//Get Repeatability
Y = Column( "Repeatability " );
x[2] = r[Outline Box( "Gauge R&R" ), Number Col Box( "Variation (6*StdDev)", 1 )] << get( 1 );
//Get Reproducibility
//Get Guage R&R
//Get Part Variation
//Get Total Variation
// XY, Plot results GRR_TABLE
回复:将仪表 R&R 报告写入数据表这是提取您请求的数据表的示例。
Names default to here(1);
dt=open("$SAMPLE_DATA/Variability Data/wafer.jmp");
vc = dt << Variability Chart(
Y( :Y ),
X( :Operator, :Wafer ),
Model( "Main Effect" ),
Historical Sigma( 0 ),
Name( "Gauge R&R" )(6, 0, 0, 0),
Name( "Gauge R&R Report" )(1)
);
// Point at the report table you are interested in, and
// pass the message to it to create the data table from it
dtRR = report(vc)["Gauge R&R"][TableBox(1)] << Make into Data Table;
有关使用输出显示树的文档位于脚本指南中。