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
 Alarming in SPC

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
xaarnlt Posted - 08 Jul 2008 : 08:22:52
I want e-mails to be sent when an alarm is raised. Is that supported in your SPC Control Chart Tools for .NET? Or is it something I have to build with the standard .NET functionality (by monitoring the alarm event record)?

Niklas

xaarnlt
7   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 04 Dec 2014 : 09:02:38
In the SPCWebApplication1 example it is referenced as chartVu.ChartData, since ChartData is a property of the underlying SPCTimeVariableControlChart class.

For example:

chartVu.ChartData.Title = "Variable Control Chart (X-Bar & R)";
chartVu.ChartData.PartNumber = "283501";
chartVu.ChartData.ChartNumber = "17";
.
.
.
chartVu.ChartData.AlarmStateEventHandler += new SPCControlLimitAlarmEventDelegate(this.SPCControlLimitAlarm);

sakamali Posted - 04 Dec 2014 : 02:53:58
quote:
Originally posted by quinncurtis

The procedure for setting up alarms in Asp.Net applications is exactly the same as described in the manual and in the discussion above.



Hi, Unfortunately there is no ChartData in your SPCWebApplication sample. There is only Chartvu (SPCTimeVariableControlChart) and it does not contain AlarmStateEventHandler. What can we do to solve this? Thanks.
quinncurtis Posted - 07 Nov 2014 : 10:30:38
The procedure for setting up alarms in Asp.Net applications is exactly the same as described in the manual and in the discussion above.
sakamali Posted - 07 Nov 2014 : 06:27:40
We are using your SPCWebApplication sample. What should we do in this sample to trigger the alarms?
quinncurtis Posted - 22 Oct 2014 : 10:39:06
Sorry, but I do not really understand the question. There is an example in the demo program TimeVariableControlCharts.DynamicXBarRChart. The SPCControlLimitAlarm method in that source file processes the alarm events. So if that method is called, an alarm has been triggered. You would send your e-mail from within the event. I don't know what else you are looking for.

You must setup the alarm processing properly in the setup part of the program:

this.ChartData.AlarmStateEventHandler += new SPCControlLimitAlarmEventDelegate(this.SPCControlLimitAlarm);


In that example the SPCControlLimitAlarm looks like:

	private void SPCControlLimitAlarm(object sender, SPCControlLimitAlarmArgs e)
	{ 
		SPCControlLimitRecord alarm = e.EventAlarm;
		double alarmlimitvalue = alarm.ControlLimitValue;
		String alarmlimitvaluestring = alarmlimitvalue.ToString();

		SPCControlChartData spcData = alarm.SPCProcessVar;
		SPCCalculatedValueRecord spcSource = e.SPCSource;
		String calculatedvaluestring = spcSource.CalculatedValue.ToString();

		String message = alarm.AlarmMessage;
		ChartCalendar timestamp = spcData.TimeStamp;
		String timestampstring = timestamp.ToString();
	   
		String notesstring = "\n" + timestampstring + " " + message + "=" + "\n" +	
			alarmlimitvaluestring + " Current Value" + "=" + calculatedvaluestring;
		if (alarm.AlarmState)
//			Console.Out.WriteLine(notesstring);
                      this.ChartData.AppendNotesString(notesstring, true);

	}

sakamali Posted - 22 Oct 2014 : 10:27:48
quote:
Originally posted by quinncurtis

You can trigger an event from an alarm, establishing an event handler for the alarm. This is discussed in the manual and there are examples. You can automate sending in e-mail in the alarm event handler. We have no special routines for sending e-mail, but that can be done using the standard .Net functionality.



Hi,
When an alarm is enabled, how can we take "true" to a bool variable? I want to send warning e-mail to user if my bool variable is true. How can I do this?
Thanks.
quinncurtis Posted - 08 Jul 2008 : 08:37:00
You can trigger an event from an alarm, establishing an event handler for the alarm. This is discussed in the manual and there are examples. You can automate sending in e-mail in the alarm event handler. We have no special routines for sending e-mail, but that can be done using the standard .Net functionality.

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