file_path = pick file(
"Select Excel File", "$Documents",
{"All Files|jmp;jsl;xlsx;xlsm", "JMP Files|jmp;jsl", "Excel Files|*"},
1, //select item
0, //save file
"Daily_Cpk.xlsx", //selected by default
);
dt = open(file_path);
//Xaxis = {"db_data_source_cd"};
Yaxis = {"offset_micron"};
//data = {"datatag_cd"};
summarize(uparam=by(datatag_cd));
nw = new window("Daily Line Machine Cpk",
Distribution(
Stack(1),
Continuous Distribution(
Column(:offset_micron),
Horizontal Layout(1),
Vertical(0),
Capability Analysis(
//Spec Limits(
datatag_cd[i] == "THA_X", LSL( -150 ), USL( 150 ),
datatag_cd[i] == "THA_Y", LSL( -150 ), USL( 150 ),
datatag_cd[i] == "THA_Theta", LSL( -300 ), USL( 300 ),
//)
)
),
By(:db_data_source_cd,:datatag_cd)
)
);
The code is working, only left the part for datatag_cd: parameter for X and Y, I would like to set the limit to +-150. However, the charts generated are all spec limits for Theta only. How do I make the spec limit works?