EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: PyDM setting alarm with PVView example
From: Hugo Slepicka via Tech-talk <tech-talk at aps.anl.gov>
To: Rute Mendes <rutepfmendes at gmail.com>
Cc: tech-talk at aps.anl.gov
Date: Fri, 13 Mar 2020 12:29:31 -0700
Hi Rute,

By pvview.py do you mean this project here: https://github.com/BCDA-APS/pvview ?
The alarm information will be visually available if you use the following at your application:

from pydm.utilities.stylesheet import apply_stylesheet
apply_stylesheet(None, my_display)

In which None will make it load the PyDM default stylesheet and my_display is your widget or QApplication in which the stylesheet will be applied and cascaded to child widgets.

You get the behavior via PyDM launcher as it does that for you but since you are using it at your own application it is missing the stylesheet to display the alarm at the widgets.
You can have your own stylesheet defining how the widgets should look like based on Alarm. Here is the default stylesheet as an example: https://github.com/slaclab/pydm/blob/master/pydm/default_stylesheet.qss

Please let me know if that works for you.

Cheers,
Hugo


On Fri, Mar 13, 2020 at 12:06 PM Rute Mendes via Tech-talk <tech-talk at aps.anl.gov> wrote:
Hello! 

I've the latest version of PyDM installed and I was trying PVView for testing the possibility of using PyDM's EPICS CA aware widgets within a different application. Only that the following line doesn't work for me,
On pvview.py module,

widget.useAlarmState = True

I can only have the alarm  active when using PyDM launcher.


Am I missing something?

Do I have to follow the "note" requirements, referred on the link below, to use a PyDM widget on my code, by including PyDMApplication?


Thank you for attention.
I hope I can have your help.
Kind regards,

Rute

References:
PyDM setting alarm with PVView example Rute Mendes via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] vxW shell related Stefen Paul via Tech-talk
Next: Re: Real-time IOC and systemd Benjamin Franksen via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: PyDM setting alarm with PVView example Rute Mendes via Tech-talk
Next: i400 electrometer stream device protocol [SEC=UNCLASSIFIED] CORNALL, Terry via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 15 Mar 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·