從一個表中的數據開始,另一個表中的規範限制開始用於開始大規模功能分析的艱難方法。雖然在一些行業領域可能有權通過編寫JSL程序的腳本,該程序將一個表中的規範加載到包含數據的表的列屬性中,但有一些更好的選擇。Ť JMP 12中的功能分析平台使得處理數據和單獨的規範表成為一項快速簡便的任務。在本文中,我將討論如何利用JMP功能平台來解決將規範表中的數據添加到數據表的列屬性的問題。手動單步執行只需點擊幾下( 過程能力平台的示例但最終目標是編寫平台腳本以自動化分析並更新數據表的列屬性和規範限制。事實證明,使用相當緊湊的腳本非常容易。
下面附帶的腳本主要是從腳本索引中提取的,其中有一些來自JMP開發人員Lancaster博士的非常有用的提示。
該腳本首先從數據表中獲取連續數字的列。
接下來創建一個空參數。變量“y”指的是空的“process variables()”參數。然後用“dty”中保存的列名填充該表達式。
表達式在幾個點使用,因為在引用引用表達式的變量之前不會對它們進行求值。
下一個表達式用於生成功能報告,現在填充的流程變量參數將插入到完成該功能的obj中。插入“過程變量(名稱)”在哪裡?這並不重要,因為“Process Capability()”中的所有內容都只是另一個參數。
Process capability()中有兩個重要的參數需要注意。首先是“Spec Limits(Import ...”,它告訴平台哪個表包含規範限制。 第二個,“規範限制對話框”(“否”(跳過...)此參數導致與平台跳過沒有規範的列而不是提示用戶提供它們相同的平台行為。(或者,“不,不要提示,只是跳過缺少規格的列。”)
該腳本的最後部分提供了對報告的引用,以便從整體Sigma摘要報告中生成數據表,並將規範保存到新數據表和原始數據表的列屬性中。
我希望你覺得這個解釋很有用。我還附上了我最近在JMP日使用的幻燈片。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
dty = dt << GetColumnNames( numeric, continuous );
y = Expr( process variables() ); //this constructs the "process variables" argument that is inside the process capability function.
n = N Items( dty );
For( i = 1, i <= n, i++,
Insert Into( y, dty[i] ) // the column names, not name strings, are inserted and comma delimited
);
obj = Expr( // this is an expression so that it won't be evaluated and we can do things to it later
Process Capability(
Spec Limits( Import Spec Limits( "$SAMPLE_DATA/CitySpecLimits.jmp" ) ), // file path and file name of the specs table
Spec Limits Dialog( "No (skip columns with no spec limits)" ), // Handy thing to know, Thank you Dr. Lancaster!!
Overall Sigma Summary Report( 1 )
)
);
Insert Into( obj, Name Expr( y ) ); // this is later and we insert "y" which is "process variables( column names )" show( name expr(y)) to see it
pr = obj << report; // pr becomes a handle for the report, and obj gets evaluated
dt2 = pr[Table Box( 2 )]<< Make Into Data Table;// this is where the the summary report is in the capability report
dt3=obj<<SAVE spec="" limits="" to="" new="" table=""></SAVE>
*報告中使用的規範也包含在摘要報告中。