acis-backstop.pl CODE documentation
CODE storage:
- 	Configuration control location:
 
- 	/data/acis/LoadReviews/cvs-repository/acis-backstop
 	
- 	Execution location:
 
- 	/data/acis/LoadReviews/script/acis-backstop.pl 
 
-     Execution Machine:
 
-     prefer Rhodes, but acceptable on and HEAD-LAN machine 
 
Code Description:
 This perl script will take as command line arguments the path and
 name of the BACKSTOP file created for a given load AND the
 ACIS-History.txt file from the last successful load. 
 This script then produces three ACIS ASCII text files that contains 
 only ACIS commands and other peripheral commands (ie, radmon
 disable/enable, gratings insertion/retraction, obsid changes, 
 TLM format changes, electon/proton radzone entries/exits,
 perigee/apogee, SIM translations, SIM focus, and COMM passes). The 
 file is time-ordered and has low level intelligence built into the code. The
 two other files this script produces is ACIS-Observations.txt 
 and ACIS-History.txt. The latter simply outputs the Chandra 
 status array at the end of the load. If that version of a load is
 approved, then this file becomes the input for the following
 week's load review and so on. ACIS-Observations simply tabulates 
 ACIS SCIENCE observations (ie not CTI measurements or ACIS NIL ERs) 
 with the corresponding OBSID, start science, stop science, and 
 total integration time.
EXTRA DOCUMENTATION FOR REWRITES 
A major rewrite of the tool occured in 2007 where the changes were
documented in the file 
	acis-backstop-changes.pdf.
A second major rewrite of this tool occured in 2011/2012 to support
the Science Only Safing Action (SOSA). Information and discussion on the SOSA design can be found on the ACIS Ops Twiki. 
 Parameter checks
 The script will also check certain parameters from the OCAT and
 compare them to the parameter block. Items checks are: 
 
 - Exposure Mode
 
- 	Event Telemetry
 
	- Frame Time
 
	- Subarrys- including custom and preset(1/2, 1/4, 1/8)
 
	- Duty Cycle
 
	- OnChip Summing
 
	- Event Energy Filters
 
	- CCDs requested vs WSPOW command
 
The instrument state is also compared against the requested values in
OCAT:
 - Inserted Grating vs OCAT setting
 
-  SIM-Z offset
 
-  SIM-Z aimpoint
 
 The TESTS this code performs can be categorized into the following 3 groups:
 -  SIM and radiation zone tests
 
 
 - check that there is at least 5 hrs between EE1 entry and perigee
 
 - check that there is at least 5 hrs between perigee and XE1
 
 -   check that there are ORBITAL EVENTS in the load (ie, perigee, e/p zones, etc)
  ensure that there is a 10 ks pad time on entry to the rad zone
   (defined as pad = <time of E1 entry>- <time of radmon DS>)
 
 -  ensure that no SIM translation occurs during the entry leg pad time
 
 -  ensure that the rad mon DS command is issued at least 10 ks 
   before entry into the E1 rad zone but no earlier than 15 ks.
 
 -  ensure that no SIM translation occurs during rad zone transit
 
 -  ensure that no SIM translation occurs during the exit leg pad time
 
 -  ensure that there is no SIM translation during an ACIS science run
 
 -  ensure that the rad mon EN command is issued at least 13 ks
   after exit from the E1 rad zone but no later than 15 ks
 
 -  ensure that there is a 10 ks pad time on exit from the rad zone
   defined as pad = <time of radmon EN>- <time of E1 exit>)
 
 -  coupled with 2 of the above tests, I ensure that the rad mon DS occurs
   before E1 entry and that rad mon EN occurs after E1 exit
 
 -  each SIMTRANS command is converted from motor steps to mm (397.67 motor steps/mm)
 
 -  there is a check that is done on z-sim so that it does not occur in the blocked
   region of -8 mm to -11.5 mm because of possible fid light problems
 
 
  -  ACIS tests
 
 
-  ensure an OBSID change occurs at least 3 mins after a stop science
 
 -  check that there are at least as many occurences of OBSID changes
   as there start science commands
 
 -  check that there is at least one WSVIDALLDN for every start science
   occurence
 
 -  check that there is at least one RS_0000001 command for every
   start science
 
 -  check that there is at least one stop science command for every
   start science command
 
 -  checks to see if we are in FMT 2 if ACIS is in the focal plane
 
 -  checks to see if we are in FMT 2 when doing a CTI measurement
 
 -  checks that a FMT1 change happens at least 3 minutes after a
	    stop science.
 
 -  checks to see that we are in the HRC-S position prior to radiation belt entry
 
 -  added check to see if RADMON is ENABLED if Chandra is in the focal plane.
 
 -  computes time difference between LAST AA00000000 and EPERIGEE; ensures video
   boards are powered down well before the belts
 
 -  computes time difference between LAST WSVIDALLDN and EPERIGEE; ensures video
   boards are powered down well before the belts
 
 -  confirms that DITHER is enabled if ACIS is starting an
      observation and is in the focal plane
 
 
 
 
 Calculations done within the code
 
-  Time of observation. Determined by start science to stop science OR
    SIM translation to stop science OR SIM focus to stop science OR
    grating insert to stop science. The start of the observation
	really depends on the bias times too and hopefully this can be 
	added.
 -  Real time communication durations
 -  SIM-Z translation if not at the nominal point
 
 Official Checklist:
The official checklist is what is reported to the load review
board. The latest version is from Aug 2012 and is found
in
  memos/cl-acis.html.
Author:
      Shanil Virani
	
    
return to last page
 
Last modified: Thu Feb 28 12:12:18 EST 2013