I have written a script using which control charts are automatically created based on the dataset and I also wrote an alarmscript which writes any outlier to the log file. However along with the text I also want the correspnding control chart to be displayed in the log text file. That way I can quickly look at the chart and find out what's going wrong. Below is my code for writing the Alarmscript and then writing the whole thing to the log.
Alarm Script(Write("This line has gone wrong,",qc_test,",",qc_col,qc_sample,"\!N")), - Script for writing the out of limits control points to a file
Savelog("C:\Users\XXXXXX\Documents\Team docs\JMP Analysis\JMPlogs.csv"); - Saving the log file.