cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Ahmed1
Level II

Control Chart Alarm Script

Hi All, 

 

I am trying to customize the alarm scrip email. JMP is sending the sample number. I would like it to send the information from a different column. I have that column marked as a label. How can I add it to the alarm script? Furthermore, Can I send  the control chart as in image to multiple emails. 

 

mail( "[email protected]", "Warning ", Substitute( "Out of Control for test ^QCTEST in column ^QCCOL in sample ^QCSAMPLE.",
"^QCTEST", char( qc_test ),
"^QCCOL", qc_col,
"^QCSAMPLE", char( qc_sample ) ));

 

Thank you in advance. 

 

3 REPLIES 3
jthi
Super User

Re: Control Chart Alarm Script

Scripting Guide might be helpful for this Run Alarm Scripts. With qc_firstRow  and qc_lastRow you should be able to access values in other columns.

-Jarmo
Ahmed1
Level II

Re: Control Chart Alarm Script

This does not pull the value of the filename corresponding to the failed sample. 

jthi
Super User

Re: Control Chart Alarm Script

I have no idea how your data looks like or your chart, so it makes this a bit more difficult. If we assume your column with filename is called "filename" you should be able to access first value for the sample with :filename[qc_firstRow].

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Quality Control/Coating.jmp");
obj = dt << Control Chart(
	Sample Size(:Sample),
	KSigma(3),
	Chart Col(:Weight, XBar, R),
	Alarm Script(
		Write("Out of Control for test ", qc_test, " in column ", qc_col, " in sample ", qc_sample, " marker is ", :Markers[qc_firstRow])
	)
);
obj << Test 1(1);
-Jarmo

Recommended Articles