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
 Custom Line in Contol Chart

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
mrart Posted - 17 May 2010 : 23:51:23
How can I add custom line to control chart ?
Customized the color and line type (dashes).
5   L A T E S T    R E P L I E S    (Newest First)
mrart Posted - 18 May 2010 : 22:18:52
thanks
quinncurtis Posted - 18 May 2010 : 12:12:20
You can set the +- 3-sigma limits using code similar to

// Setup upper and lower 3-sigma limits values
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT).LimitValue = 20;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT).LimitValue = 34;


You can add spec limits using code similar to:
// You must add a reference (using xxxx) System.Drawing.Drawing2D at the top of your module to resolve the DashStyle.Dash constant.

// Adding a Specification limit in addition to regular SPC control limits
SPCControlLimitRecord lcl2 = new SPCControlLimitRecord(this.ChartData,
SPCControlLimitRecord.SPC_LOWERTHAN_LIMIT, 0, "L SPEC", "L SPEC");
this.PrimaryChart.AddAdditionalControlLimit(lcl2, SPCChartObjects.SPC_MEASURED_VARIABLE, 1);
lcl2.ControlLimitValue = 26;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_2).LinePlot.LineColor = Color.Green;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_2).LinePlot.LineStyle = DashStyle.Dash;

SPCControlLimitRecord ucl2 = new SPCControlLimitRecord(this.ChartData,
SPCControlLimitRecord.SPC_GREATERTHAN_LIMIT, 0, "H SPEC", "H SPEC");
this.PrimaryChart.AddAdditionalControlLimit(ucl2, SPCChartObjects.SPC_MEASURED_VARIABLE, 1);
ucl2.ControlLimitValue = 32;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).LinePlot.LineColor = Color.Yellow;
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).LinePlot.LineStyle = DashStyle.Dash;
mrart Posted - 18 May 2010 : 11:54:37
I am looking to add
- Upper and Lower Specification line
- +/-3 Sigma line
to the existing Control Chart during loading.
quinncurtis Posted - 18 May 2010 : 09:11:01
Do you want to add fixed limit lines, like specification limits, to the chart; or are you looking to add a variable line, like the x-bar line of the primary chart? You can do the former, but not the latter.
mrart Posted - 18 May 2010 : 04:03:14
More than 2 custom line with difference color and dashes.

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