Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 apply WE rule with custom control limits?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alex

5 Posts

Posted - 13 May 2010 :  06:14:02  Show Profile  Reply with Quote
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()?

quinncurtis

1586 Posts

Posted - 13 May 2010 :  11:05:05  Show Profile  Reply with Quote
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);
Go to Top of Page

alex

5 Posts

Posted - 13 May 2010 :  21:28:42  Show Profile  Reply with Quote
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!
Go to Top of Page

alex

5 Posts

Posted - 13 May 2010 :  23:15:44  Show Profile  Reply with Quote
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?
Go to Top of Page

quinncurtis

1586 Posts

Posted - 14 May 2010 :  09:10:27  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07