The DAQ function scan_waist.m will change the FFS (Final Focus and Spectrometer) to values defined in a file called waist_BDES_values.txt. This can be used to scan the waist position, spot size, or over any custom FFS optics that you like. Be careful.

File Locations:

Scan function:               matlabTNG/F2_DAQ/scan_waist.m

File of magnet values:   matlabTNG/F2_DAQ/waist_BDES_values.txt


Instructions for use:

  1. Update the magnet values in waist_BDES_values.txt:
    1. In your own git_work directory, go to your matlabTNG folder
    2. Update your local repository: git pull origin master
    3. Open the file F2_DAQ/waist_BDES_values.txt and enter the 9 FFS maget values for each step in a single line in the format "Q5FF Q4FF Q3FF Q2FF Q1FF Q0FF Q0D Q1D Q2D"
  2. Commit and push your changes:
    1. git commit -m "some comment on what scan this is" waist_BDES_values.txt
    2. git push origin master
  3. Update the production repository
    1. cd $TOOLS/matlabTNG
    2. git pull
  4. No need to restart the DAQ - this file is read when the scan function runs.
  5. In the DAQ - select the scan function "waist". Enter 1 for start, and the number of steps in your scan for the stop, and number of steps. Each step will increment to the next line in the waist file.
  6. You can watch the S20 Config tool to see the waist offset update as the (Primary IP Waist Shift, ACT value)


Example file:

How to get magnet values from S20 Config tool and the SpecLine GUI:

From the S20 Config (from facethome, Physics Apps) - calculate the match values for each step:

  1. Select the IP waist location (or reference position) under the "IP Primary Wiast Location"
  2. Enter the desired beta function under "Beta Functions at IP Location"
  3. Set the location to image the beam to in the spectrometer under "Downstream IP Match Conditions". Note - you can ignore this if you are setting fixed spectrometer values separately SpecLine GUI.
  4. Click "Do Match"
  5. Enter the waist offset DES value (this is the offset from the selected IP waist location)
  6. Click "waist→DES"
  7. Record the values from the "Match" line. (Do not use the BDES values)
  8. Enter a new waist offset, click "Waist→DES", record
  9. Repeat for all steps


To set the spectrometer quads - use the SpecLine GUI (From LI20 Profile Monitors)

  1. Enter the desired "Spectrometer Parameters"
  2. Click "Calculate"
  3. Record the values from the BCALC column for the values for: Q0D Q1D Q2D


Figures:

   

  • No labels