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