製程能力<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
你好,
嘗試在過程能力圖中添加變量列表(“過程變量”)。
它適用於列表中的單個項目,但不適用於整個列表。
l 測試=數據表( “dt目標” ) <<獲取列名(數字) ;
數據表( “dt目標” ) <<製程能力(
過程變量(評估( l 測試[一世]) ) , // 它適用於任何 i
//過程變量(評估( l 測試) ) , // 不起作用
_ _ _ _ _
};
謝謝
回复:過程能力謝謝大家的幫助。
回复:過程能力這是腳本的工作版本。它繞過了將規範限制添加到平台代碼的要求,方法是將限制移動到數據表中列的列屬性中。
名稱默認到這裡( 1 );
dt =打開( “$sample_data/大類.jmp” );
dtSpecLimits =新表( “我的規格限制” ,
添加行( 3 ),
新列( “範圍” , 字符, 標稱, 設定值( { “高度” , “重量” , “年齡” } ) ),
新列( “LSL” , 連續, 設定值( [ 0 , 0 , 0 ] ) ),
新列( “目標” , 連續, 設定值( [ 50 , 100 , 50 ] ) ),
新列( “USL” , 連續, 設定值( [ 99 , 200 , 100 ]))
);
//dtSpecLimits << Save( "C:\Users\user\Documents\MySpecLimits.jmp" );
ltest = dt <<獲取列名(數字);
代入(測試,表達式(列表()),表達式(過程變量));
// 處理規格限並將它們作為列屬性添加到數據表中
為了( 我 = 1 , 我 <= N行(dtSpecLimits), i++,
評估(
代替(
表達式(
__var__ <<設置屬性(
“規格限制” ,
{LSL( __LSL__ ),目標( __Target__ ),USL( __USL__ ),顯示限制( 1 )}
)
),
表達式( __var__ ),解析( “dt:” || dtSpecLimits:參數),
表達式( __LSL__ ), dtSpecLimits:LSL ,
表達式( __Target__ ), dtSpecLimits:Target ,
表達式( __USL__ ), dtSpecLimits:USL ,
)
)
);
評估(
代替(
表達式(
dt <<製程能力( 整我(),目標圖( 1 ), 能力指數圖( 1 ) )
),
表達式( 整我() ),
名稱表達式(ltest) // ... 使用 ltest
)
);
回复:過程能力謝謝。 它有效,但我無法從保存的規格限製表中導入規格限制。
名稱默認到這裡( 1 ) ;
dt =打開( “$sample_data/大類.jmp” ) ;
dtSpecLimits =新表( “我的規格限制” ,
添加行( 3 ) ,
新列( “範圍” ,特點,標稱,設定值( { “高度” , “重量” , “年齡” } )) ,
新列( “LSL” ,連續的,設定值( [ 0 , 0 , 0 ] ) ) ,
新列( “目標” ,連續的,設定值( [ 50 , 100 , 50 ] ) ) ,
新列( “USL” ,連續的,設定值( [ 99 , 200 , 100 ] ) )
) ;
dtSpecLimits <<節省( "C:\Users\user\Documents\MySpecLimits.jmp" ) ;
測試= dt <<獲取列名(數字) ;
Substitute Into( ltest, Expr( List() ), Expr( Process Variables ) );
e = Substitute(
Expr(
Process Capability(
FIXME(), // replace this...
Spec Limits( Import Spec Limits("C:\Users\user\Documents\MySpecLimits.jm")),
Spec Limits Dialog( "No (skip columns with no spec limits)" ),
1,
Show Within Sigma Points( 1 ),
Show Overall Sigma Points( 0 ),
Shade Levels( 1 )
),
Expr( FIXME() ), Name Expr( ltest ) // ...with ltest
);
eval(e); // open the platform
Re: Process CapabilityI hope someone chimes in with a better way. This should work... "FIXME()" is an arbitrary placeholder that the substitute() function can find and replace with the proper expression.
dt = Open( "$sample_data/big class.jmp" );
ltest = dt << getcolumnnames( numeric );
Substitute Into( ltest, Expr( List() ), Expr( Process Variables ) );
show(nameexpr(ltest)); // Process Variables(age, height, weight);
e = Substitute(
Expr(
Process Capability(
FIXME(), // replace this...
Spec Limits(
height( LSL( 0 ), Target( 50 ), USL( 99 ) ),
weight( LSL( 0 ), Target( 100 ), USL( 200 ) ),
age( LSL( 0 ), Target( 50 ), USL( 100 ) )
),
Goal Plot( 1 ),
Capability Index Plot( 1 )
)
),
Expr( FIXME() ), Name Expr( ltest ) // ...with ltest
);
show(nameexpr(e)); // Process Capability(Process Variables(age, height, weight), ...
eval(e); // open the platform