Panic-The Alba Alarm System

Hi,

Could you try to add some spaces around device names? Maybe the parser is getting confused

<pre>
any([t>10 for t in [ a/a/a/Speed , a/a/b/Speed ]])
</pre>

Sergi
Keep on dancing,

http://www.tango-controls.org/resources/howto/how-fandango/
Hello Sergi

I tried by having space across device names. It worked

Thanks and Regards
TCS-GMRT TEAM.
Regards,
TCS_GMRT
Hello Sergi

1.)I have around 150 alarms in my list. When I try to disable single/multiple alarms, its not disabling the selected alarms but when the alarm number is less, then I am able to perform the disable action. Same problem is with acknowledging single/multiple alarms.

2.)I am trying to import from .csv file. It has around 150 alarms, so the window which opens which says"Choose alarms to import" doesn't have scrollbar attached and I am unable to browse through the lower alarms. Similarly, the problem is with disable and delete button. If you try to delete and disable around 150 alarms, the scrollbar doesnt come. So you couldnt see ok button. I have attached the screenshot of the same problem

Any Suggestions ??


Thanks and Regards
TCS-GMRT TEAM
Regards,
TCS_GMRT
Hi TCSGMRT,

The .csv loading/exporting has not been put into production yet, so it may be buggy. The other problems with multiple selection have been already solved in development but the branch is not ready yet to merge to SVN.

I take note of your problems and I'll try to fix it in the next release (end of october).

Sergi
Keep on dancing,

http://www.tango-controls.org/resources/howto/how-fandango/
Hi Andy,

Andy
Sergi,

I checked out the latest versions of fandango and PyAlarm and have the same result as in my previous post. If you have any other ideas how I can track down the problem let me know.

Andy

I'm very sorry, but I did the same in two different machines and I'm not able to reproduce the problem at all.

Are you trying this on a virtual machine? If you could send me a link to the virtual machine then I'll try to debug it there.

It is indeed very strange, as if something was weird in the pythonpath.

Sergi
Keep on dancing,

http://www.tango-controls.org/resources/howto/how-fandango/
Solved!!!

The bug found by Andy was caused by fandango.get_tango_host() assuming that TANGO_HOST was declared as environment variable.

Now it is corrected and working fine,

Sergi
Keep on dancing,

http://www.tango-controls.org/resources/howto/how-fandango/
Hello Sergi

I have created one application in taurus which have one button.I have requirement to open the Alarm_Panic_GUI(gui.py file present inside Panic Directory) on click of that button. How can I achieve this functionality?

I have tried to do it in following way in my taurus application:

def openAlarmPanicGUI(self):
self.guiObj = gui.main(sys.argv[1:] or ([os.getenv('PANIC_DEFAULT')] if os.getenv('PANIC_DEFAULT') else [])).exec_()

But i am able to open the gui.py. But when i close the Alarm-Tool, My taurus application won't work seamlessly. Whats the better way to meet the below requirement

def openAlarmPanicGUI(self):
"I want to call gui.py file from here"
"Object of gui.py should be created here"

Thanks and Regards
TCS_GMRT TEAM
Regards,
TCS_GMRT
Hi, well, I have two updates

First, to add the panic GUI to a TaurusGUI you can add it using the common PanelDescriptor object in your taurus_ui.py file; it will integrate the AlarmGUI within Taurus (update panic gui sources before doing so):

…
panic_panel = PanelDescription('PANIC','panic.gui.AlarmGUI',
  sharedDataWrite={'HighlightInstruments':'devicesSelected'})
…

Second, multi-host support in alarms is finally working. You can use full-path names in attribute names and also can include the tango host in FIND(…) wildcard searches. See screenshot for an example of the syntax.


TEST_ALARM = any([t > 20
 for t in FIND(controls02:10000/bl00/ct/eps-plc-01/*pt)])

To enjoy these updates you'll need the latest sources from sourceforge:

* https://svn.code.sf.net/p/tango-cs/code/share/fandango/trunk/fandango
* https://svn.code.sf.net/p/tango-ds/code/DeviceClasses/SoftwareSystem/PyAlarm/trunk
* https://svn.code.sf.net/p/tango-ds/code/Clients/python/Panic/trunk

Regards,

Sergi
Keep on dancing,

http://www.tango-controls.org/resources/howto/how-fandango/
Edited 8 years ago
Hello Sergi

I have updated the fandango,pyalarm and panic module.
When I try to run the below syntax in PC1 :
any([t>10 for t in FIND(01hw341680:10000/l/m/n/Speed)])

it works fine as 01hw341680 is host name of PC1 and L/m/n/Speed device server and attribute of PC1.

Now When I try to run the same syntax from PC2,I am encountering following error
Test/alarms/1: Type error evaluate() got an unexpected argument device.
P.S. Both Pcs are connected one to one and both have different IP address.

Thanks and Regards
TCS-GMRT TEAM
Regards,
TCS_GMRT
On 01/26/2016 05:21 AM, B Chitalia/TVM/TCS wrote:
> Hello Sergi
>
> The SNAP tool (as well as the java-based archivers) does not support
> archiving attributes from another Tango hosts. I put Raphael Girardot
> (SOLEIL) in copy to know if there's any trick to solve that. If there's
> any solution to this problem I'd be happy to apply it.
>
> Is there any way to log the alarm when it becomes active. Because the scenario is we are developing a Taurus-GUI in which at there is a section in which we display alarm related messages. So for localhost, it used to log the alarm in snap database and we used to retrieve the info from database and show it in our GUI.
>
> For the multiple host alarm detection, it is detecting the alarm but not logging in snap database so is there any other way from where we can read the info(like if logging possible in file, if not db) when alarm becomes active and show it in our taurus gui.
> Please suggest the same as it is one of our important requirements.
>
> Thanks and Regards
>
> Balkrishna Chitalia
Keep on dancing,

http://www.tango-controls.org/resources/howto/how-fandango/
 
Register or login to create to post a reply.