T O P I C R E V I E W |
alex |
Posted - 13 May 2010 : 06:14:02 I've tried use "getPrimaryChart().getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_1).setLimitValue(double value)" to set the control limits for SPC_UPPER_CONTROL_LIMIT_1,2.... before insert data, and not to invoke autoCalculateControlLimits() after data inserted. But the generated charts seems not correctly apply the WE rule checking! And I've also tried to set the control limits for the secondary chart use above function, but the lines of lower control limits not displayed!
How to apply the WE rule check on XBarSigma and XBarRange chart with specified control limits without using autoCalculateControlLimits()? |
4 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 14 May 2010 : 09:10:27 Even though you can set them, the WE Rules do not apply to the secondary chart. They only make sense when applied to the primary chart. So do not call useWERuntimeRules for the secondary chart. |
alex |
Posted - 13 May 2010 : 23:15:44 I got few questions when i tried to use WE rule check for secondary chart of WERulesVariableControlChart.XBarRChart example. I tried to use the constraint SPC_UPPER_CONTROL_LIMIT_3,2,1 to set control limits for secondary chart if I wanna apply the WE rule check,but not work. Then I tried to use SPC_UPPER_CONTROL_LIMIT+1, SPC_UPPER_CONTROL_LIMIT+2 as below, Bingo!!
But no matter what I tried, the lower control limits line of LCL-S1,LCL-S2,LCL-S3 won't displays when applying the WE rule check on secondary chart, even use the autoCalculateControlLimits().
secondaryChart.getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT).setLimitValue(19); secondaryChart.getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT+1).setLimitValue(16); secondaryChart.getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT+2).setLimitValue(13); secondaryChart.getControlLimitData(SPCChartObjects.SPC_CONTROL_TARGET).setLimitValue(10); secondaryChart.getControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT).setLimitValue(1);
What is the constraints I should use for setting the UCL-S1,UCL-S2,UCL-S3 for set the control limits in secondary? And is there no WE rule check for the lower control limits of secondary chart? |
alex |
Posted - 13 May 2010 : 21:28:42 Yes! I actually not set value of the SPC_UPPER_CONTROL_LIMIT_0 and SPC_LOWER_CONTROL_LIMIT_0 both!! It helps a lot, thank you! |
quinncurtis |
Posted - 13 May 2010 : 11:05:05 You are probably not setting all of the control limits required by the WE Rules calculation, particularly SPC_UPPER_CONTROL_LIMIT_0 and SPC_LOWER_CONTROL_LIMIT_0. These two limits MUST be set to the target value. Below is an example which works with our WERulesVariableControlChart.XBarRChart example. If you auto-scale the secondary control chart, the lower limit will be at the extreme bottom of the chart.
primaryChart.getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3).setLimitValue(36); primaryChart.getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).setLimitValue(34); primaryChart.getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_1).setLimitValue(32); primaryChart.getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_0).setLimitValue(30); primaryChart.getControlLimitData(SPCChartObjects.SPC_CONTROL_TARGET).setLimitValue(30);
primaryChart.getControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_0).setLimitValue(30); primaryChart.getControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_1).setLimitValue(28); primaryChart.getControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_2).setLimitValue(26); primaryChart.getControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_3).setLimitValue(24);
secondaryChart.getControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT).setLimitValue(21); secondaryChart.getControlLimitData(SPCChartObjects.SPC_CONTROL_TARGET).setLimitValue(10); secondaryChart.getControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT).setLimitValue(1); |
|
|