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
 SPC Control Chart Tools for .Net
 SPCTimeAttributeControlChart in a Windows service
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jvillasenor

USA
2 Posts

Posted - 09 Aug 2012 :  17:53:06  Show Profile  Reply with Quote
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,

quinncurtis

1586 Posts

Posted - 09 Aug 2012 :  18:07:37  Show Profile  Reply with Quote
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?
Go to Top of Page

jvillasenor

USA
2 Posts

Posted - 09 Aug 2012 :  18:37:19  Show Profile  Reply with Quote
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.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 09 Aug 2012 :  19:43:33  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07