runtime, graphical
For a running system a filter's SWSTAT value and its decoded switch bits can be viewed graphically by pressing the "GUARDIAN SET" button on the lower left of the filter medm. Of course these bits are also shown on the main medm, the FILTALH medm just shows just the switch settings more clearly.
command line, non graphical
For a command line decoding of the bits, Jamie has written the 'cdsutils sfm decode' function. This takes either one argument (the SWSTAT value) or two arguments (either SW(1,2) or SW(1,2)R). For a running system you can use either SWSTAT or the SW(1,2)(S,R) options. For past settings only SWSTAT is available from the DAQ. From conlog the SW(1,2)S values are also available, but they are equivalent to SWSTAT (filter engaged bits not available). Here is an example with SW(1,2)R supplied (so engaged bit data is shown).
cdsutils sfm decode 12292 1536
INPUT
FM5
FM5_ENGAGED
OUTPUT
DECIMATION
command line, graphical
Mike Thomas has written a python script called filterstate, which takes either SW(1,2)S or SW(1,2)R pairs as arguments and shows the switch settings graphically by creating a static png image which approximates to the standard filter module medm. Because only SWSTAT is available from the DAQ. I have written a script to convert SWSTAT to its equivalent SW(1,2)S pair called swstat2sw
For example, if the SWSTAT is 37904, the decode can be shown graphically with the command
filterstate $(swstat2sw 37904)
which produces the image shown below.