T O P I C R E V I E W |
jvillasenor |
Posted - 09 Aug 2012 : 17:53:06 I'm working in a project where the end goal is to report out-of-control elements in a SPCTimeAttributeControlChart and not so much displaying the chart. So I created a windows service using VS2008. The service fetches new data every 30 minutes. I now that the service is pulling correctly the data because I store the results to a event log. The problem that I have is that the service is not triggering the SPCControlLimitRecord alarm event delegate.
My first question would be, is it possible to use SPC Control Chart Tools for .Net inside of a Windows service? If yes, then what could I be possibly missing?
Thank you, |
3 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 09 Aug 2012 : 19:43:33 Since you can't see the limits, are you sure they are being violated? Try turning on our disk log function, see the SPCApplication1 example program, to see if the values are what you expect.
Try to not call the AutoCalculate... with every update. That's not really the way control limits should be established. Do 50 updates, perhaps with stored data, then run the AutoCalculatePrimaryControlLimits. That will set the limits. From that point on, call AddNewSampleRecord for each new sample interval. If you aren't displaying anything on the screen, there is no reason to call RebuildChartUsingCurrentDaa, or UpdateDraw. The alarm event should still trigger, because it is not tied to the update of the display.
|
jvillasenor |
Posted - 09 Aug 2012 : 18:37:19 The setup routine gets called. After acquiring the sample group size and defect count I then call the addNewSampleRecord. Finally, I call the autoCalculatePrimaryControlLimits, rebuildChartUsingCurrentData and updateDraw. I included try-catch error handling when calling the aforementioned methods; these are not throwing any errors.
What I basically tried to do was to use a working SPC Control Chart Tools for .Net (asp.net program) and converted it to a Windows service. |
quinncurtis |
Posted - 09 Aug 2012 : 18:07:37 Sorry, but we have zero experience with what you describe. It is after all a charting package, not a runtime service. The first thing to check, does the setup routine (the one that calls all of our properties and methods to setup the chart) get called? And subsequently, does AddNewSampleRecord method get called for each of your updates? Because if AddNewSampleRecord does not get called, there is no way an alarm event could be triggered. How are you verifying that the updates take place? |
|
|