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  2020  2021  <20222023  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  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Phoebus Rules for Tooltips
From: "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Carsten Winkler <carsten.winkler at helmholtz-berlin.de>
Date: Thu, 8 Dec 2022 14:01:24 +0000
Instead of using an Ellipse with a rule to update the color and another rule to update the tooltip with the value text, just use an LED or Multi-state LED where all you need to enter is the PV name
... plus that will then also work in the web runtime



From: Tech-talk on behalf of Carsten Winkler via Tech-talk
Sent: Thursday, December 8, 2022 6:20 AM
To: tech-talk at aps.anl.gov
Subject: [EXTERNAL] Phoebus Rules for Tooltips

Hello, does anyone have any idea why the rule for the tooltip is not
outputting the variable value? Any help is appreciated. Many greetings,
Carsten
<?xml version="1.0" encoding="UTF-8"?>
<display version="2.0.0">
   <widget type="ellipse" version="2.0.0">
     <name>Release LED</name>
     <x>27</x>
     <y>49</y>
     <width>20</width>
     <height>20</height>
     <line_width>2</line_width>
     <line_color>
       <color red="0" green="0" blue="0">
       </color>
     </line_color>
     <background_color>
       <color red="204" green="204" blue="204">
       </color>
     </background_color>
     <rules>
       <rule name="color" prop_id="background_color" out_exp="false">
         <exp bool_exp="pvSev0 == -1">
           <value>
             <color red="204" green="204" blue="204">
             </color>
           </value>
         </exp>
         <exp bool_exp="pvSev0 == 0">
           <value>
             <color red="30" green="187" blue="0">
             </color>
           </value>
         </exp>
         <exp bool_exp="pvSev0 == 1">
           <value>
             <color red="249" green="218" blue="60">
             </color>
           </value>
         </exp>
         <exp bool_exp="pvSev0 == 2">
           <value>
             <color red="255" green="0" blue="0">
             </color>
           </value>
         </exp>
         <pv_name>V08V01U315L:Lock</pv_name>
       </rule>
       <rule name="tooltip" prop_id="tooltip" out_exp="false">
         <exp bool_exp="true">
           <value>pvStr0</value>
         </exp>
         <pv_name>V08V01U315L:Lock</pv_name>
       </rule>
     </rules>
     <tooltip>???</tooltip>
   </widget>
</display>

--
Carsten Winkler
Software Developer
BE-IA-AOT / AG ELIS
________________________________________________________________________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
14109 Berlin
Deutschland

 

Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den*die Absender*in und vernichten Sie diese Mail. Das unerlaubte Kopieren, die Veröffentlichung sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This email may contain confidential and/or proprietary information. If you have received this e-mail in error, please inform the sender immediately and destroy this e-mail. Unauthorized copying, publishing or distribution of this e-mail is not permitted.


Navigate by Date:
Prev: Phoebus Rules for Tooltips Carsten Winkler via Tech-talk
Next: Re: A simple EPICS driver example for PCI devices using asynPortDriver on Linux Perez Juarez, Emilio (DLSLtd, RAL, LSCI) 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  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Phoebus Rules for Tooltips Carsten Winkler via Tech-talk
Next: Ways to know if instrument connected via TCP/IP through StreamDevice has lost connection Wang, Andrew 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  2020  2021  <20222023  2024 
ANJ, 08 Dec 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·