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 Microsoft .Net & .Net Compact Framework
 SPC Control Chart Tools for .Net
 Batch MedianRangeChart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mike

8 Posts

Posted - 06 Mar 2008 :  09:45:37  Show Profile  Reply with Quote
I would like to use an SPCBatchVariableControlChart of type MedianRangeChart. The SPCTimeVariableControlChart MedianRangeChart demo chart runs correctly with the simulated data. I modified the class to inherit from SPCBatchVariableControlChart, and changed the AddNewSampleRecord in the SimulateData() method to pass the sample data only. When I run the demo now it takes an exception at AutoScalePrimaryChartYRange() immediately after the SimulateData() method call. Am I doing something wrong here? The exception is:

A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at com.quinncurtis.spcchartnet.SPCControlChartData.GetSampledValue(Int32 row, Int32 col)
at com.quinncurtis.spcchartnet.SPCChartBase.InitializeChartSimpleDataset(SPCChartObjects chartobjects)
at com.quinncurtis.spcchartnet.SPCChartBase.InitializeChartDataset(SPCChartObjects chartobjects)
at com.quinncurtis.spcchartnet.SPCChartBase.AutoScaleChartYRange(SPCChartObjects chartobjects)
at com.quinncurtis.spcchartnet.SPCChartBase.AutoScalePrimaryChartYRange()

quinncurtis

1164 Posts

Posted - 06 Mar 2008 :  11:27:21  Show Profile  Reply with Quote
Assuming you did everyting else right, it's probably a bug associated with showing a scatter plot of the actual sample values, in combination with a batch variable control plot. That feature is controlled using the charts PlotMeasurementValues property. The example program that you based your example on, TimeVariableControlCharts.MedianRangeChart is one of the few that have that property set to true.

Find where the PrimaryChart.PlotMeasurementValues property is set, and set it to false to test this theory.

this.PrimaryChart.PlotMeasurementValues = false;



After that you can just download the software again, using your original download link to get a version of the software that fixes this bug.

Let us know the results.


Go to Top of Page

Mike

8 Posts

Posted - 06 Mar 2008 :  11:39:14  Show Profile  Reply with Quote
Yes, that works. However, I want to be able to plot the sample data as my customers want to see the high and low values on the chart rather than the range plot.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 06 Mar 2008 :  11:42:13  Show Profile  Reply with Quote
You can just go ahead and re-download the software. Any new downloads will contain the bug fix.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07