Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Hiding control limits

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
GlennD Posted - 10 Mar 2009 : 16:26:14
I have a SPCBatchVariableControlChart chart. Is it possible to hide either the upper or lower control limits ?
7   L A T E S T    R E P L I E S    (Newest First)
quahys Posted - 11 Jun 2013 : 23:17:40
Hi.Haha I already found the solution.

Dim ruleflags As BoolArray = Me.PrimaryChart.GetInitializedRuleBoolArray(SPCControlLimitRecord.BASIC_RULES, True)
ruleflags(2) = False
Me.PrimaryChart.UseNamedRuleSet(SPCControlLimitRecord.BASIC_RULES, ruleflags)

In my case,I just need to disable the Rule #2 in Basic Rule. Then everything works as what I want.

Last but not least, thanks for your support and help^^
quahys Posted - 11 Jun 2013 : 22:33:22
Hi and Thanks for the feedback.

Yes It worked fine if I did not specify any LCL.Can you test again by including LCL in SPCApplication1 example program?

For Example :
Dim primarylowercontrollimit As SPCControlLimitRecord = Me.ChartData.GetControlLimitRecord(SPCControlChartData.SPC_PRIMARY_LOWER_CONTROL_LIMIT)
primarylowercontrollimit.ControlLimitValue = 31
Me.PrimaryChart.EnableControlLimitItem(SPCChartObjects.SPC_CONTROL_TARGET, False)
Me.PrimaryChart.EnableControlLimitItem(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT, False)

And change Me.AutoCalculateControlLimits() to Me.AutoCalculateSecondaryControlLimits()

After that when you run the program, you can see those datapoints which are located above LCL would having the alarm.
quinncurtis Posted - 11 Jun 2013 : 09:14:21
Your logic seems OK. I tested the code using our SPCApplication1 example program, disabling the UCL and target limits. And it worked as expected. You should do the same. I added the two lines right before the call to first call to SimulateData, as seen below.

Me.PrimaryChart.EnableControlLimitItem(SPCChartObjects.SPC_CONTROL_TARGET, False)
Me.PrimaryChart.EnableControlLimitItem(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT, False)

' Training data to establish limits
SimulateData(50, 30, 10)


I think you might be disabling the limits AFTER you update the chart with data. You must disable the limits BEFORE the chart is updated with data, as seen in the example above, else the existing (non-disabled) limit values will be alarm checked during the update of the data.

quahys Posted - 11 Jun 2013 : 00:34:02
Hi.I'm also having similar problem. One of the part component is only contain lower control limit but no upper control limit.( For example : the spec is >74. Then my LCL should be 74, Target and UCL would be empty). So in my application I have to disable target and upper control limit when the chart is showing observation value for that specific part component. Below is part of the code:

Dim primarylowercontrollimit As SPCControlLimitRecord = chart(i).ChartData.GetControlLimitRecord(SPCControlChartData.SPC_PRIMARY_LOWER_CONTROL_LIMIT)
primarylowercontrollimit.ControlLimitValue = lowlim <----------lowlim is a varable
chart(i).PrimaryChart.EnableControlLimitItem(SPCChartObjects.SPC_CONTROL_TARGET, False)
chart(i).PrimaryChart.EnableControlLimitItem(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT, False)

When I run the program, the alarm due to (Basic Rule #2 violation 1 of 1 greater than 3-sigma=0) is always showing.
What I understand is my default UCL is 0, that's why alarms occur everytime.
But since I already disable the UCL, by right the alarm due to Basic Rule #2 should not occur.

What should I do in order to fix this issue?
quinncurtis Posted - 11 Mar 2009 : 14:38:07
Try this:

this.PrimaryChart.EnableControlLimitItem(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3, false);
this.SecondaryChart.EnableControlLimitItem(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3, false);
GlennD Posted - 11 Mar 2009 : 13:30:12
Thanks for the response.

I was able to get the line to disappear, however the label is still visible it just move from the right side of the graph to bottom of the graph.

This code hides the control line, is there a way to remove it's affect on the alarms in the table ? What I have is data that has a lower control limt but no upper control limit. I want to totally remove the calculations (alarms) for the control limit.

Thanks
quinncurtis Posted - 11 Mar 2009 : 09:47:50
Disable the control limit lines using code like:


this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3).LinePlot.ChartObjEnable = ChartObj.OBJECT_DISABLE;

this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_3).LinePlot.ChartObjEnable = ChartObj.OBJECT_DISABLE;



Disable the control limit numeric values to the right using code like:


this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3).LabelLimit = false;

this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_3).LabelLimit = false;



Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07