Can we read alarms in AVEVA Intouch or System Platform?
The answer is that with a few lines of code we will add that functionality.
Search for the System.Speech Library
By default, we do not have the library we are interested in if we search for System.Speech
Locate the Library in the .NET Framework
You will have it installed on your operating system because it is part of the .NET Framework. You can search for it, as it will be the one we add.
Import the Library into the Environment
Once located, we will import the library into our environment. Once imported, if you want to know a little more, in this example, more information is added.
Enable the NewAlarm Event in AlarmClient
In our symbol where we have embedded the AlarmClient, we enable that every time an alarm is generated it triggers the NewAlarm event. To do this, when the symbol called MyAlarms is loaded, we will change the mode according to the following information, since by default it does not execute, its value is 0.
Trigger Internal Property in the Event
And in its event, we will trigger an internal property of our symbol.
Demo Code
The following code only demonstrates its functionality and how we already have the library we imported. It would need to be worked on better to only read critical alarms and not all of them... but we will leave that for you to make sense of your SCADA.
Functionality Video
And now let's see its functionality ;-)
Demonstration: Reading Alarms in AVEVA Intouch with System.Speech