Reports until 14:17, Wednesday 25 February 2015
H1 ISC
alexan.staley@LIGO.ORG - posted 14:17, Wednesday 25 February 2015 - last comment - 17:26, Wednesday 25 February 2015(16920)
Decoding SWSTAT

Just for referecne. If you want to decode a SWSTAT value use the following, and replace '#' with the SWSTAT value:

cdsutils sfm decode #

Comments related to this report
jameson.rollins@LIGO.ORG - 17:26, Wednesday 25 February 2015 (16925)

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):

jameson.rollins@operator1:~ 0$ cdsutils switch LSC-DARM
INPUT
OFFSET
FM7
FM7_ENGAGED
FM8
FM8_ENGAGED
FM10
FM10_ENGAGED
LIMIT
OUTPUT
DECIMATION
jameson.rollins@operator1:~ 0$ 

The 'sfm' command can also guess that you're looking to decode a SWSTAT:

jameson.rollins@operator1:~ 0$ cdsutils sfm 48832
INPUT
OFFSET
FM7
FM8
FM10
LIMIT
OUTPUT
DECIMATION
jameson.rollins@operator1:~ 0$ 

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 read H1:LSC-DARM_SW{1,2}R
12
1999
jameson.rollins@operator1:~ 0$ cdsutils sfm 12 1999
INPUT
OFFSET
FM7
FM7_ENGAGED
FM8
FM8_ENGAGED
FM10
FM10_ENGAGED
LIMIT
OUTPUT
DECIMATION
jameson.rollins@operator1:~ 0$ 

See 'cdsutils sfm -h' for help:

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$