Place sq1.pro
Contents
Acquiring the sq2servo ramp set
We run auto-tuning in a special mode where it loops over all rows. The files will be in the usual auto-tuning output sort-of-a place, namely /data/cryo/current_data/<ctime>/.
Tune once with the usual experiment.cfg. Then set the auto-tuning to do the SQ1 servo on all rows, and tune again:
$ cd $MAS_DATA $ mas_param set sq1_servo_all_rows 1 $ auto_setup_squids_sh
Suppose this most recent tuning has gone into ctime directory 1222233334. There will be a tonne of data files in this tuning folder, with names like:
1222233350_RC1_row0_sq1servo 1222233350_RC1_row1_sq1servo 1222233350_RC1_row2_sq1servo ...
Plotting and positioning the data with place_sq1
The place_sq1 script requires the filename of an sq2servo data file, and a structure containing basic results of the sq1servo analysis. You can plot to the screen, or to postscript by passing an output filename. You can plot a single column, or analyze all.
Go to the $MAS_DATA/engineering directory, open IDL. Then load the sq1 data run the place_sq1 script:
IDL> .r place_sq1 % Compiled module: VPHI_LIMITS. % Compiled module: LOAD_SQ1SERVO_SET. % Compiled module: PLACE_SQ1. IDL> tuning_folder = '/data/cryo/current_data/1222233334/' IDL> sq1_data = load_sq1servo_set(tuning_folder+'1222233340_RC1') IDL> sq2_file = tuning_folder+'1222233340_RC1_sq2servo' IDL> place_sq1,sq2file,sq1_data,0
The 0, there, is the column you want to analyze. That form is good for interactive operation. To plot all columns to postscript, do, e.g.
IDL> place_sq1,sq2file,sq1_data,0,plot_file=tuning_folder+'sq1_RC1.ps',/all_columns