Alarms

Hi Katy

1. Once alarm comes, it should beep in alarm and reminder states. I have check that button "BEEP On Alarm and Remainder States" in alarm and reminder state while defining rule. But the sound is not coming. Where should I make the changes ?

2. My expression rule is true, now alarm comes and i acknowledge it. After acknowledment, alarm comes back again in few seconds as the rule is true. But I want to configure the time after which alarm comes back after acknowledgement. How could i achieve this ?

3. I want to perform an automated action when alarm comes. How could i achieve that ?
For Example:
if(@(l/m/n/windspeed).read>@(l/m/n/windspeed).maxalarm becomes true I want to take some automated action, let say set attribute value of speed=10

4. What is control viewer ? Whats the application of control viewer ?

Thanks and Regards
TCS-GMRT TEAM

Regards,
TCS_GMRT
Edited 8 years ago
TCS_GMRT
Hi Katy

1. Once alarm comes, it should beep in alarm and reminder states. I have check that button "BEEP On Alarm and Remainder States" in alarm and reminder state while defining rule. But the sound is not coming. Where should I make the changes ?

Hello :) ,

So normally, if you check the box "Beep On ALARM and REMINDER states", a beep sound on when a alarm change state RECOVER to ALARM or REMINDER, but there must be a state change.
I have just test the functionnality on Windows.

Other else, I have already encounter this problem before but here is the possible reason :
1 - When the GUI is running on a TX, the beep is done on the server that is not in the same room :).
2 - Or, my have my head phones plug on PC and I have turn on the sound, very stupid this one : )

TCS_GMRT
2. My expression rule is true, now alarm comes and i acknowledge it. After acknowledment, alarm comes back again in few seconds as the rule is true. But I want to configure the time after which alarm comes back after acknowledgement. How could i achieve this ?

As I answer before, as current state it is not possible to ignore the alarm event, during a period.
You can act on REMINDER state, and the severity. But at SOLEIL we usully do this ways :
1 - An alarm occure => An expression is true
2 - The operator fixe the problem on devices or facilities => The expression is false
3 - The alarm go to RECOVER state
4 - The operator aknowledge the alarm and it is not come back again…

Sometimes the operator, know that there will be an alarm, because there is installation.
So the operator stop the evaluation during this period.

You can, also specify a evaluation period (polling system) for a specific archiver instead of 1000 ms you can set your delay, in order to have a less frequency evaluation.

At last, we can add a functionnality for that, 'alarm delay after aknowledgement…', but for the moment it is not a priority. I can just set it in the roadmap and ask to our operator if it is interesting for SOLEIL.

TCS_GMRT
3. I want to perform an automated action when alarm comes. How could i achieve that ?
For Example:
if(@(l/m/n/windspeed).read>@(l/m/n/windspeed).maxalarm becomes true I want to take some automated action, let say set attribute value of speed=10

In the futur version, we will add a automatic SnapShot on alarm event.
But what you can do, is that polling AlarmManager lastAlarmGroupUpdateTimeLong attribute.
If it change, it's means that you have a alarm that change state.
Then you can use GetAlarmGroup command on AlarmDatabaseAccess device. You will see in the description of the command that the last answer is the status… It is enumeration value :
CLOSED = 0
FROZEN = 1
RECOVER = 2
ALARM = 3
REMINDER = 4

If you are in 3 level, you can execute your command or write an attribute.

The other solution, is to develop and client on AlarmToolAPI. the associated Jar is AlarmArchivingAPi. You can use the IAmarlArchivingAPI interface to see the Javadoc and to launch the API, your have to to do this :
FactoryProducer.getAlarmArchivingAPI();
FactoryProducer.getClientManager().startRefreshing();
And add a addGroupListener on it.

But I will advise you the first solution. Because the AlarmDatabaseAccess provide you all the necessary command you need to access the Alarm database. The source code is host on tango-cs http://sourceforge.net/p/tango-cs/code/HEAD/tree/archiving/api/AlarmArchivingApi/ for the API and http://sourceforge.net/p/tango-cs/code/HEAD/tree/archiving/tool/AlarmArchivingGUI/ for the GUI



TCS_GMRT
4. What is control viewer ? Whats the application of control viewer ?

Thanks and Regards
TCS-GMRT TEAM

Control viewer, is allow you to launch ATKPanel or an other generic GUI on a Tango device server that is defined in a rule.
1- Give the path of ATKPanel (sh or batch) in the Preferences -> Options menu. (see my screen shot)
2 - Then when you click on control viewer menu, it will launch ATKPanel with the device name in argument.

I hope, my information was useful,
Best regards,

Katy
Hi Katy

So normally, if you check the box "Beep On ALARM and REMINDER states", a beep sound on when a alarm change state RECOVER to ALARM or REMINDER, but there must be a state change.
I have just test the functionnality on Windows.

Other else, I have already encounter this problem before but here is the possible reason :
1 - When the GUI is running on a TX, the beep is done on the server that is not in the same room :).
2 - Or, my have my head phones plug on PC and I have turn on the sound, very stupid this one : )
Checked the box "Beep On ALARM and REMINDER states", beep sound not coming. Also GUI and server running in same machine, still sound isn't coming.

Control viewer, is allow you to launch ATKPanel or an other generic GUI on a Tango device server that is defined in a rule.
1- Give the path of ATKPanel (sh or batch) in the Preferences -> Options menu. (see my screen shot)
2 - Then when you click on control viewer menu, it will launch ATKPanel with the device name in argument.

Thanks a lot

As I answer before, as current state it is not possible to ignore the alarm event, during a period.
You can act on REMINDER state, and the severity. But at SOLEIL we usully do this ways :
1 - An alarm occure => An expression is true
2 - The operator fixe the problem on devices or facilities => The expression is false
3 - The alarm go to RECOVER state
4 - The operator aknowledge the alarm and it is not come back again…

Sometimes the operator, know that there will be an alarm, because there is installation.
So the operator stop the evaluation during this period.

You can, also specify a evaluation period (polling system) for a specific archiver instead of 1000 ms you can set your delay, in order to have a less frequency evaluation.

At last, we can add a functionnality for that, 'alarm delay after aknowledgement…', but for the moment it is not a priority. I can just set it in the roadmap and ask to our operator if it is interesting for SOLEIL.
Do i have to specify evaluation period in Alarm Archiver device property ? what is the syntax ?
I have tried this one:
EvaluationPeriodInMS = 30000

It isn't working. Alarm comes as soon as it is acknowledged ( expression is true ).


In the futur version, we will add a automatic SnapShot on alarm event.
But what you can do, is that polling AlarmManager lastAlarmGroupUpdateTimeLong attribute.
If it change, it's means that you have a alarm that change state.
Then you can use GetAlarmGroup command on AlarmDatabaseAccess device. You will see in the description of the command that the last answer is the status… It is enumeration value :
CLOSED = 0
FROZEN = 1
RECOVER = 2
ALARM = 3
REMINDER = 4

If you are in 3 level, you can execute your command or write an attribute.

When you are releasing the next version ? Please share the link here once you release the next version.
Also whats the syntax of GetAlarmGroup command in AlarmDataBaseAccess ?


Thanks and Regards
TCS-GMRT Team




Regards,
TCS_GMRT
 
Register or login to create to post a reply.