데이터 테이블 ( 'tbl')이라는 쿼리를 실행 한 후 컨트롤 차트와 Data1 TEST_DATE. JMP 스크립팅 가이드 알람 스크립트 정보 및 게시물을 검토했습니다. LINK1 & LINK2 ,하지만 어떻게 점을 연결하는 알아낼 수 없습니다. 1) 차트 col 매개 변수 이름에 실패한 테스트가 발생하고 오늘 날짜에 실패한 테스트가 있으면 이메일로 스크립트를 보내고 싶습니다. (또는 내가 이미 알고있는 그래프 .jpg) . 나는이 스크립트를 하루에 한두 번 실행하고 싶습니다. 2) 또한이 실패한 테스트를 현재 테이블의 실패한 데이터 행 ( 'tbl')의 새 열에있는 셀에 출력 할 수 있습니까? 어떤 도움이라도 대단히 감사하겠습니다.
cc3 = tbl << Control Chart(
Sample Label( :TEST_DATE ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col(
:Data1,
Individual Measurement(
Show Zones( 1 ),
Shade Zones( 1 ),
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 ),
Sigma( 0.45 ),
Avg( 0.02296 ),
LCL( -1.347 ),
UCL( 1.39 )
)
),
//copied this section from another user's post & tried a few different variations
Alarm Script(
Write(
QC_Test,
",",
QC_Col,
",",
QC_Sample,
",",
QC_FirstRow,
",",
QC_LastRow,
",",
fldid,
",",
tmppartno,
",",
SessionID,
"\!N"
)
)
//end of copied section
,
SendToReport(
Dispatch(
{"Individual Measurement of Data1"},
"2",
ScaleBox,
{Format( "Fixed Dec", 10, 3 ), Min( -2 ), Max( 2 ), Inc( 0.5 ), Minor Ticks( 1 )}
),
Dispatch(
{"Individual Measurement of Data1"},
"1",
ScaleBox,
{Label Row( Label Orientation( "Angled" ) )}
),
Dispatch(
{"Individual Measurement of Data1"},
"IR Chart of IM",
FrameBox,
{Frame Size( 537, 431 ), Marker Size( 4 ), Grid Line Order( 7 ),
Reference Line Order( 8 ), Row Legend(
Sample_Name,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
);
Report( cc3 ) << save picture( "G:\My Drive\spc\picture.jpg" );
For Each Row(
Date = If( :TEST_Date = Today(),
If( :Name( "QC_Test" ) > 0,
Mail(
"bob@bob.com",
"SPC - Out Of Control",
"Chart has failed SPC test ",
"G:\My Drive\spc\picture.jpg"
)
)
)
);