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
 Alarming in SPC
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xaarnlt

1 Posts

Posted - 08 Jul 2008 :  08:22:52  Show Profile  Reply with Quote
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

quinncurtis

1586 Posts

Posted - 08 Jul 2008 :  08:37:00  Show Profile  Reply with Quote
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.
Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 22 Oct 2014 :  10:27:48  Show Profile  Reply with Quote
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.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 22 Oct 2014 :  10:39:06  Show Profile  Reply with Quote
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);

	}

Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 07 Nov 2014 :  06:27:40  Show Profile  Reply with Quote
We are using your SPCWebApplication sample. What should we do in this sample to trigger the alarms?
Go to Top of Page

quinncurtis

1586 Posts

Posted - 07 Nov 2014 :  10:30:38  Show Profile  Reply with Quote
The procedure for setting up alarms in Asp.Net applications is exactly the same as described in the manual and in the discussion above.
Go to Top of Page

sakamali

Turkey
33 Posts

Posted - 04 Dec 2014 :  02:53:58  Show Profile  Reply with Quote
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.
Go to Top of Page

quinncurtis

1586 Posts

Posted - 04 Dec 2014 :  09:02:38  Show Profile  Reply with Quote
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);

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