> > In the EDD/DM I need to implement color rule which represents the
> > highest alarm severity of two channels.
> >
> > Then I didn't found how to pass two or more arguments to the rule (is it
> > possible at all ?)
> >
> Yes, it is possible to pass more than one argument. However,
> you can't directly compare one alarm severity to another since
> the right hand terms (the terms following the comparators)
> are basically constants.
>
> In the modify property page for the item in the "color rule
> arguments" field, you can enter something like:
> A=chan1.SEVR, B=chan2.SEVR
>
> Your color rule definition could be something like:
> $(A) equals MAJOR and
> $(B) less than 2 use <A>B color>
> $(A) equals MINOR and
> $(B) equals NONE use <A>B color>
> $(B) equals MAJOR and
> $(A) less than 2 use <B>A color>
> $(B) equals MINOR and
> $(A) equals NONE use <B>A color>
>
>
> Note that the color is selected on a "first match" basis,
> Also comparisons are done based upon the type of entry, i.e.
> if a string is in the third column, the value of the first
> column will be compared using a string compare and a numerical
> compare will be done otherwise. It's awkward since you have to
> define all possible comparisons separately.
>
> Let me know if you have more questions.
Thanks for your reply.
I put the rule as below:
$(A).SEVR equals MAJOR or
$(B).SEVR equals MAJROR use <A>B color>
$(A).SEVR equals MINOR or
$(B).SEVR equals MINOR use <A>B color>
$(B).SEVR equals NO_ALARM and
$(A).SEVR equals NO_ALARM use <B>A color>
and passed arguments to them:
A=XXX:YYY:Z:chan1Alarm,B=XXX:YYY:Z:chan2Alarm
But then when I activate the display dm "dies" (not possible to perform
any action on the display, besides killing it from WM)
Is there any limit concerning the total length of the arguments in the
line ?
Thanks for any comments.
Regards,
Marian
--
Marian Zurek
CERN/ECP-CO
- References:
- Re: EDD/DM: Passing multiple arguments for color rule definition ? Anna M. Estes
- Navigate by Date:
- Prev:
PMAC-VME EPICS software F. Gougnaud
- Next:
Re: EDD/DM: Passing multiple arguments for color rule definition ? Anna M. Estes
- 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
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: EDD/DM: Passing multiple arguments for color rule definition ? Anna M. Estes
- Next:
Re: EDD/DM: Passing multiple arguments for color rule definition ? Janet Tvedt
- 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
2022
2023
2024
|