From P.W.Phillips@rl.ac.uk Tue May  4 10:39:12 2004
Date: Fri, 30 Apr 2004 17:07:24 +0100
From: "Phillips, PW (Peter) " <P.W.Phillips@rl.ac.uk>
To: ''Heidi Sandaker ' ' <Heidi.Sandaker@cern.ch>
Cc: ''Ewa Stanecka ' ' <ewa.markiewicz@ifj.edu.pl>,
     ''Pamela Ferrari ' ' <Pamela.Ferrari@cern.ch>,
     '''Alessandro Tricoli ' ' ' <a.tricoli1@physics.ox.ac.uk>,
     '''Abdelouahab Abdesselam ' ' ' <a.abdesselam1@physics.ox.ac.uk>
Subject: RE: Phantom Ramp Down!


Hi Heidi,

Here is a revised version of BinCCStat.pnl.

The basic bug in the original version was that the error code is stored
in the second byte of the datapoint, yet the check was made against
the first byte.  Hence one actually got a bitwise breakdown of the
channel code.

As ever, we added a few bells and whistles.  The panel now shows the
channel, code and time for the last HV and the last LV errors reported
by the CC.  Hence the last errors of each type are displayed and
decoded simultaneously.  All the code is in EventInitialise of the
main panel, there is no longer any code associated with any of the
panel objects. I use carefully named panel objects, a loop and the
">>" operator to actually do the bitwise decoding.  Seems to work
reliably.  I also gave the panel a name: if we do this to all of the
"NoName" panels it seems it will end the lottery as to which one of
the "NoName" popups will close when one clicks the close button on 
one of the others....

Abdel also found a bug in the code that changes the colour of the
HV status popup button on the main values panel. If you look 
carefully at the code, an "else" is missing.  This bug can probably 
be traced back to me.  Anyway, we fixed it in the local copy here...

Cheers,

Peter, Abdel, Alessandro


    [ Part 2, Application/OCTET-STREAM (Name: "BinStatCC.pnl")  14KB. ]
    [ Unable to print this part. ]

