T O P I C R E V I E W |
juilinlee |
Posted - 03 Jan 2011 : 16:32:05 Dear Customer Team,
Chart Type : PERCENT_DEFECTIVE_PARTS_CHART_VSS Chart Base : SPCTimeAttributeControlChart Example path : \QCSPCCHART\Quinn-Curtis\DotNet\QCSPCChart\Visual CSharp\examples\VariableSampleSizeControlCharts
I was using this example to add X axis user defined string on SPC Time Attribute Control Chart. Looks like AddAxisUserDefinedString function only support scale mode = "LINEAR_SCALE". Do you think there is a way to support this function on Time Attribute Control Chart?
Thanks
Rick |
5 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 03 Jan 2011 : 20:57:41 You must specify the correct SPC chart type (SPCControlChartData.PERCENT_DEFECTIVE_PARTS_CHART_VSS) in the InitSPCBatchAttributeControlChartsetup call, and call ChartData.SampleSubgroupSize_VSS correctly. See the example VariableSampleSizeControlCharts.PercentDefectivePartsControlChart.
this.ChartData.SampleSubgroupSize_VSS = numsamplespersubgroup;
// Add new sample record this.ChartData.AddNewSampleRecord( timestamp, samples); |
juilinlee |
Posted - 03 Jan 2011 : 17:43:00 Sorry for the confusion. Base on your suggestion, I did try to use SPCBatchAttributeControlChart in my case, but the number samples per subgroup is fixed number of "50" from the example program. I was not be able to change it before.
However, I found out that I can change number samples per subgroup in SimulateDate function by setting SampleSubgroupSize_VSS parameter in SPCBatchAttributeControlChart class base. Now, I can set sample subgroup size, and X Axis.
If I did something wrong, please give some advice.
Thanks Rick |
quinncurtis |
Posted - 03 Jan 2011 : 17:29:08 We have no idea how your last post relates to the original topic. |
juilinlee |
Posted - 03 Jan 2011 : 17:26:05 Dear Customer Team,
Thanks for your support. Looks like I can set SampleSubgroupSize_VSS at SimulateData function to change subgroup size to whatever on SPCBatchAttributeControlChart base class.
Best regards,
Rick
|
quinncurtis |
Posted - 03 Jan 2011 : 16:49:54 The AddAxisUserDefinedString function applies to batch control charts, since in a batch control, a major tick mark is placed at every sample subgroup, allowing a unique string to be used as a batch ID for that sample interval.
The Time Attribute Control Chart (and Time Variable Control Chart) does not necessarily place tick marks on sample intervals. Instead it places tick marks at logical time intervals. Therefore it is not suitable for use with custom axis strings, since there is no telling where the tick marks are in relation to the sample subgroup.
So the answer is no, there is no way to use AddAxisUserDefinedString with the time-based control charts. They can only be used with the batch-based control charts.
Why can't you just use the batch-based control charts (SPCBatchAttributeControlChart in your case) ? |