EPICS Home

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: Compare two string-type PVs in CSS/BOY rule
From: "Hu, Yong via Tech-talk" <tech-talk at aps.anl.gov>
To: "Kasemir, Kay" <kasemirk at ornl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 14 May 2020 13:22:28 +0000
pvStr0 == “some text” works in the old CS-Studio/BOY (4.5.1) too.

The problem I had is about comparing two string-like PVs: pvStr0 == pvStr1 does not work in 4.5.1; however, String(pvStr0) == String(pvStr1) works.
Does pvStr0 == pvStr1 work in CS-Studio/Phoebus?

Thanks,
Yong


On 5/14/20, 8:33 AM, "Kasemir, Kay" <kasemirk at ornl.gov> wrote:

    > I have not tried this kind of Rule on newer CSS versions.

    Rule expressions
       pvStr0 == “some text”
    work in the latest incarnation, i.e. the Display Builder in CS-Studio/Phoebus.
    I assume that's in part because BOY would internally translate the rules into JavaScript, while the Display Builder translates them into Jython.

    -Kay



Replies:
Re: Compare two string-type PVs in CSS/BOY rule Kasemir, Kay via Tech-talk
References:
Compare two string-type PVs in CSS/BOY rule Hu, Yong via Tech-talk
Re: Compare two string-type PVs in CSS/BOY rule Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: Compare two string-type PVs in CSS/BOY rule Kasemir, Kay via Tech-talk
Next: Re: Compare two string-type PVs in CSS/BOY rule Kasemir, Kay 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: Re: Compare two string-type PVs in CSS/BOY rule Kasemir, Kay via Tech-talk
Next: Re: Compare two string-type PVs in CSS/BOY rule Kasemir, Kay 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