alert handling discrete on bit32 dpes

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
miks
Posts:6
Joined: Wed Nov 23, 2011 4:02 pm

alert handling discrete on bit32 dpes

Post by miks »

hi all

I'm trying to use alert handling discrete on bit32 variables to get alerts exactly if one of the bits are set.

Exactly alert handling discrete with 3 ranges like:
1st range:good range
2nd range:=1 (alert)
3rd range:=3 (warning)

If I'm using this alert config on a integer dpe it is working like expected: 0-> no alert, 1->alert, 2->no alert, 3->warning, 4-> no alert, ...
If I'm using the same alert configuration on a bit32 dpe it works completly different, the 3rd range alert is fired, even if the bit32 contains nothing but 32 zeros.
I have to use bit32 variables as I'm getting these variable type from the driver and get lots of anoying type conversion warnings from the driver if im using integer dpes.

Is this a bug in discrete alert handling on bit32 variables or do I anything wrong?

miks
Posts:6
Joined: Wed Nov 23, 2011 4:02 pm

Re: alert handling discrete on bit32 dpes

Post by miks »

sorry folks, my fault :blink:

the bit32 alert handling ranges must be defined by patterns not by numbers.
1st range:good range
2nd range:=01 (alert) NOT 1
3rd range:=11 (warning) NOT 3

now it works. :)

nice weekend

mweber
Posts:42
Joined: Mon Aug 02, 2010 11:23 am

Re: alert handling discrete on bit32 dpes

Post by mweber »

Hi,

unfortunately I wasnt fast enough to provide you some hints - but I am glad you found out on your own. ;-)


have a nice day

Markus

3 posts • Page 1 of 1