식에 추가 할 루핑여보세요,
전반적으로 Process Capability 계산 및 데이터 테이블 플롯을 수행하는 루프를 작성하려고합니다. 이 작업을 수행하려는 방식은 프로세스 기능을 포함하는 표현식을 작성하는 것입니다. 루프가 완료된 후에 루프 외부에서 프로세스 기능을 한 번 평가하기 때문에 표현식을 생각하고있었습니다.
목표 :
- 루프를 시작하십시오.
프로세스 기능이있는 표현식 작성
- 각 반복마다 해당 열을 다른 열의 프로세스 기능에 추가합니다.
루프 닫기
모든 프로세스 기능으로 전체 표현식을 평가합니다.
- 테이블에서 사양 한계를 가져옵니다.
열 속성으로 -set spec limits
이 작업을 수행하는 더 좋은 방법이 있다면 알려주십시오.
감사
제목 : Re : 식에 추가하는 루핑아래 주석 된 스크립트는 스크립트 개발을위한 더 나은 방법이라고 생각합니다.
Names Default To Here( 1 );
// open your data table, or point to the already open table
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
// or
// dt = current data table();
colNamesList = dt << get column names( string, continuous );
// Open your limits table
// Loop across the limits table, and take that information and
// apply it to your measurement data table
// Run the Process Capability code below
Process Capability(
Process Variables( Eval( colNamesList ) ),
Spec Limits Dialog( "No (skip columns with no spec limits)" ),
Goal Plot( 1 ),
Capability Index Plot( 1 ),
Process Performance Plot( 0 )
);