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  <20172018  2019  2020  2021  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  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Question about Edm dynamic display zone's fill color according to PVs
From: Rolf Keitel <[email protected]>
To: lzf neu <[email protected]>, tech_talk <[email protected]>
Date: Tue, 9 May 2017 09:53:57 -0700

Hi Zhefu,


--- in the edmobjects directory in the colors.list file you need to define static colors (I just chose the indices 0,1,2,3,...):

static 0 blue { 0 0 65535 }

static 1 green-yellow { 0 65535 0 65535 65535 0 }

static 2 green-red { 0 65535 0 65535 0 0 }

rule 3 zone-fill {

 = 1 : blue

 = 2 : green-yellow

 = 3 : green-red

 default: blue

}


---  in the edmobjects directory in the calc.list file you need to define a calculated color:

zone-fill

A=1&&B=1?2:(A=0&&B=1&&C=1?3:1)


--- in your edm widget, e.g. a rectangle

set the fill-color to

zone-fill

set the Color PV to

CALC\zone-fill(PVa,PVb,PVc)


- rolf -

On 05/09/17 03:32, lzf neu wrote:
Hi,

I want to display the zone's fill color according to PVs.

In my case, rectangle zone's fill color depend on three PVs.

Let's assume PVa, PVb and PVc.

If PVc is equal to zero, then the rectangle's fill color is blue.

If PVa and PVb are both equal to 1, the rectangle zone's fill color is green and yellow blittering alternatively.

if PVa is 0 and PVb and PVc are both 1, then the zone's fill color is green and red blittering alternatively.

I have no idea how to do this by using edm, any help will be appreciated and thanks in advance.

Zhefu



References:
Question about Edm dynamic display zone's fill color according to PVs lzf neu

Navigate by Date:
Prev: RE: V4 question. Mark Rivers
Next: First Release Candidate of Base-3.16.1 Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Question about Edm dynamic display zone's fill color according to PVs lzf neu
Next: Re: V4 question. Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024