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:
- Update the magnet values in waist_BDES_values.txt:
- In your own git_work directory, go to your matlabTNG folder
- Update your local repository: git pull origin master
- 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"
- Commit and push your changes:
- git commit -m "some comment on what scan this is" waist_BDES_values.txt
- git push origin master
- Update the production repository
- cd $TOOLS/matlabTNG
- git pull
- No need to restart the DAQ - this file is read when the scan function runs.
- 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.
- You can watch the S20 Config tool to see the waist offset update as the (Primary IP Waist Shift, ACT value)
How to get magnet values from S20 Config tool and the SpecLine GUI:
- From the S20 Config - calculate the match values for each step:
- Select the IP waist location (or reference position) under the "IP Primary Wiast Location"
- Enter the desired beta function under "Beta Functions at IP Location"
- 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.
- Click "Do Match"
- Enter the waist offset DES value (this is the offset from the selected IP waist location)
- Click "waist→DES"
- Record the values