Page 1 of 1

Alarmserver data to Datalogger

Posted: Tue Apr 05, 2016 9:34 am
by Franswa
Hello,
I would be able to read the csv files of my alarm server than i saved before into the project file.
I would have a list boxe with when i click on a file I could have a table with the data.
In fact, I want to historicize the alarmes happenned and can read it after.
I also got the idear to export the data of alarmserver to a data logger but i don t know how to do.
I use iX developer 2.20, all controllers drivers are updated.
Thank for your interest for my message.
Best regards.

Franswa

Re: Alarmserver data to Datalogger

Posted: Mon Apr 18, 2016 2:19 am
by bjornidar
Hi,

what exactly are you looking for? A routine that saves/ writes alarms to a file?

If you open up the "Script" for "Alarm Server" and hook up an event for "AlarmServer_AlarmActive" you get the information about the incomming alarm.

Code: Select all

void AlarmServer_AlarmActive(System.Object sender, System.EventArgs e)
{
// Create alarm event object from Active alarm		
	Neo.ApplicationFramework.Interfaces.IAlarmEvent alarmEvent = (Neo.ApplicationFramework.Interfaces.IAlarmEvent)sender;
	// Get information from alarmevent
	string groupName = alarmEvent.AlarmGroupName;
	string alarmText = alarmEvent.Text;
	string alarmItemID = alarmEvent.AlarmItemDisplayName;
}