Commit 270747da authored by rodolakis's avatar rodolakis
Browse files

updtae doc

parent bafae914
......@@ -244,19 +244,19 @@ mydata.header[3].UB # return dictionary of UB metadata
|:--------: |:---------------------: |:-------------------: |:-----------------------------------------------------: |:--------------------------: |:----------: |
| | | | | | |
| Mesh | 31 | n/a | Incident energy (I0) | 29idMZ0:scaler1.S14 | SRS1 |
| TEY | 32 | 36 | Total Electron Yield | 29idMZ0:scaler1.S2 | SRS2 |
| D3 | 33 | 37 | Big diode (2.5 deg) | 29idMZ0:scaler1.S3 | SRS3 |
| D4 | 34 | 38 | Small diode (0.15 deg) | 29idMZ0:scaler1.S4 | SRS4 |
| TEY | 32 | 36 | Total Electron Yield | 29idMZ0:scaler1.S2 29idMZ0:scaler1_calc1.B | SRS2 |
| D3 | 33 | 37 | Big diode (2.5 deg) | 29idMZ0:scaler1.S3 29idMZ0:scaler1_calc1.C | SRS3 |
| D4 | 34 | 38 | Small diode (0.15 deg) | 29idMZ0:scaler1.S4 29idMZ0:scaler1_calc1.D | SRS4 |
| | | | | | |
| MCP | 35 | 39 | TFY - analog signal | 29idMZ0:scaler1.S5 | MPA |
| MCP | 35 | 39 | TFY - analog signal | 29idMZ0:scaler1.S5 29idMZ0:scaler1_calc1.E | MPA |
| MCP ROI1 | 41 | | 50x50 ROI centered on MCP center | 29iddMPA:Stats1:Total_RBV | |
| MCP ROI2 | 42 | | 100x100 ROI centered on MCP center | 29iddMPA:Stats2:Total_RBV | |
| MCP ROI3 | 43 | | 200x200 ROI centered on MCP center | 29iddMPA:Stats3:Total_RBV | |
| MCP ROI4 | 44 | | 400x400 ROI centered on MCP center | 29iddMPA:Stats4:Total_RBV | |
| MCP ROI5 | 45 | | MCP integrated intensity (stats) | 29iddMPA:Stats5:Total_RBV | |
| | | | | | |
| Vortex | 16 | 49 | TFY - centered on desired energy | 29iddMPA:Stats1:Total_RBV | |
| Vortex | 17 | 50 | TFY - centered on Oxygen energy | | |
| Vortex | 16 | 49 | TFY - centered on desired energy | 29idVORTEX:mca1.R0 29idd:userTran1.D| |
| Vortex | 17 | 50 | TFY - centered on Oxygen energy | 29idVORTEX:mca1.R1 29idd:userTran1.E | |
| | | | | | |
| H | 46 | | Miller index | 29idKappa:userArrayCalc1.L | |
| K | 47 | | Miller index | 29idKappa:userArrayCalc2.L | |
......
......@@ -5,7 +5,9 @@
2) check tth minimum/maximum allowed position in extended panel (PI software): after homing tth PI/dial position will be set to either of those, which will prevent it to move it in that direction
3) sync EPICS values:
Sync_PI_Motor()
```python
Sync_PI_Motor()
```
4) locate direct beam on d4, set to zero:
* user
* dial (will set PI value as well)
......@@ -16,10 +18,10 @@
gedit /net/s29dserv/xorApps/epics/synApps_5_8/ioc/29idKappa/29idKappaApp/Db/tthOffsetSelector.db
7) reboot 29idKappa (run on Junebug) and sync PI motor again.
8) check mesh and slits:
Scan_D5D()
Scan_Slit3D_center()
```python
Scan_D5D()
Scan_Slit3D_center()
```
---------------------------------------
## Energy calibration:
Good to check after a shutdown:
......@@ -35,32 +37,32 @@ Good to check after a shutdown:
## Align M3R pitch to center of rotation:
1) start from the last known value for M3R pitch ie desired pixel value (typically betwen 110-115)
2) align direct beam on d4 and reset tth0:
align_d4(z0,th)
mvtth(new_value)
tth0_set()
note: &nbsp;- th can be 0 or 180 (no need to care about omega here)<br>
&emsp;&emsp;&ensp; - at that point z0 is a rough estimate<br>
&emsp;&emsp;&ensp; - **use d3 only to measure z** (d4 is too narrow)
```python
align_d4(z0,th)
mvtth(new_value)
tth0_set()
```
Note: &nbsp;- th can be 0 or 180 (no need to care about omega here)<br>
&emsp;&emsp;&ensp;&nbsp; - at that point z0 is a rough estimate<br>
&emsp;&emsp;&ensp;&nbsp; - **use d3 only to measure z** (d4 is too narrow)
3) align z at th=0:
z0=align_z0(0)
```python
z0=align_z0(0)
```
4) find omega0 at th/2th=15,30:
omega0=align_th0(0,z0)
```python
omega0=align_th0(0,z0)
```
5) iterate until it converges, keeping an eye on the mirror pixel position (1pxl ~ 50um in z)
6) go to th=180 and repeat steps 3 to 5 to find z180 and omega180
7) find mirror position to reach target z value $z_{opt}=0.5*(z0+z180)$ by changing the desired pixel position then run a z scan, and iterate:
align_m3r(new_pxl)
align_z0()
```python
align_m3r(new_pxl)
align_z0()
```
note: you can do this a th=0 or th=180 (align_z0 or align_z180), depending on where you are.
8) **realign tth0** for new mirror position (step 2)
......@@ -72,11 +74,12 @@ note: you can do this a th=0 or th=180 (align_z0 or align_z180), depending on wh
## Determine kth_offset:
If th_0 and th_180 is the motor position at specular near th=15 and th=165, respectivaley (eg th_0=13.671 and th_180=163.65):
Offset = 0.5*(180 - th_180 - th_0)
With motor at 0, the actual value is Offset.
If th_0 and th_180 is the motor position at specular near th=15 and th=165, respectivaley (eg th0=13.671 and th180=163.65):
```python
th_offset = 0.5*(th180 + th0 - 180)
mvth(th_offset)
```
With th motor at 0, the actual value is Offset: mvth(Offset), then reset kth dial to 57.045
---------------------------------------
......@@ -84,9 +87,9 @@ With motor at 0, the actual value is Offset.
1) move to th=90, chi=0, phi=90
2) find z:
align_z0_chi0()
```python
align_z0_chi0()
```
3) adjust M4R pitch (v) to match z0=z180:
# IMPORTANT: backup/restore => s29hxp1 BUT gui = hxp2 (for scattering)
......@@ -125,13 +128,13 @@ With motor at 0, the actual value is Offset.
1) compare kap scans at (th,chi,phi) = (90,0,90) and (270,0,-90):
dscankap(-4,4,0.1)
```python
dscankap(-4,4,0.1)
```
2) watch out for the braid when going from th=90, phi=90 to th=270, phi=-90!
3) set the value of intersection (here 0.18) to 0:
![image](./figures/KapBeforeAfter.png)
![image](figures/KapBeforeAfter.png)
---------------------------------------
......@@ -147,8 +150,10 @@ With motor at 0, the actual value is Offset.
<li><i>eg.</i> (110) out of plane & (111) in plan </p>
<li>scanphi while staying on a peak with an in plan component, here (111):</li>
```python
dscanphi(-5,5,0.1)
```
dscanphi(-5,5,0.1)
<li>[phi = 0] &nbsp;&rlarr; &nbsp;[(111) <font size="+1">&#8712;<font size="-1"> scattering plan]</li>
<br>
</ul>
......@@ -156,8 +161,8 @@ With motor at 0, the actual value is Offset.
<img src="./figures/scanphi.jpg" width="300" alt="">
<img src="./figures/EwaldSphere.jpg" alt="">
<img src="figures/scanphi.jpg" width="300" alt="">
<img src="figures/EwaldSphere.jpg" alt="">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment