There are a couple of other useful SFM tools inside of cdsutils as well:
You can get a textual display of the full current state of a filter module by using the 'switch' command without any arguments (note the leading "H1:" IFO prefix is optional):
Note that SWSTAT doesn't include the "_ENGAGED" status bits that are included in the 'switch' readback above. But you can also give 'sfm' SW{1,2}R values to get the full status:
jameson.rollins@operator1:~ 0$ cdsutils sfm -h
usage: sfm []
decode/encode filter module switch values
commands:
decode SW1 SW2 decode SM1 and SM2 values into engaged button names
decode SWSTAT decode SWSTAT value into engaged button names
(NOTE: does not include DECIMATION)
encode [+e] BUTTON [BUTTON...] encode list of engaged buttons into switch values
with +e don't include button engaged bits
If the commands names are left out and the encoding/decoding will be guessed.
Filter banks names may be specified by index when encoding
(e.g. '3' instead of 'FM3').
jameson.rollins@operator1:~ 0$
There are a couple of other useful SFM tools inside of cdsutils as well:
You can get a textual display of the full current state of a filter module by using the 'switch' command without any arguments (note the leading "H1:" IFO prefix is optional):
The 'sfm' command can also guess that you're looking to decode a SWSTAT:
Note that SWSTAT doesn't include the "_ENGAGED" status bits that are included in the 'switch' readback above. But you can also give 'sfm' SW{1,2}R values to get the full status:
See 'cdsutils sfm -h' for help: