... | ... | @@ -66,7 +66,7 @@ scanXAS_BL(E_Ti,mcp=True,m3r=True);plot_latest() |
|
|
```
|
|
|
<br>
|
|
|
|
|
|
# diffractometer
|
|
|
## diffractometer
|
|
|
|
|
|
- m1 = kphi
|
|
|
- m2 = x
|
... | ... | @@ -90,7 +90,7 @@ sample(mysample) # moves to mysample, does not move tth |
|
|
```
|
|
|
<br>
|
|
|
|
|
|
# motor scans
|
|
|
## motor scans
|
|
|
|
|
|
```python
|
|
|
scanx(-500,500,50) # absolute scan (start,stop,step)
|
... | ... | @@ -110,7 +110,7 @@ Clear_Scan_Positioners('Kappa') # remove extra positioner (eg after th2th |
|
|
|
|
|
<br>
|
|
|
|
|
|
# srs setup
|
|
|
## srs setup
|
|
|
|
|
|
With shutter close or slit at 0 (faster), 'INPUT OFFSET' set 'ON' and 'UNCAL'
|
|
|
- make sure the count goes down (not up) when closing the shutter! If the count goes up without beam, change the INVERT ON/OFF - as of 2021_2 all of our SRSs are INVERT ON (D3/D4/TEY/mesh)
|
... | ... | @@ -123,7 +123,7 @@ With shutter close or slit at 0 (faster), 'INPUT OFFSET' set 'ON' and 'UNCAL' |
|
|
|
|
|
<br>
|
|
|
|
|
|
# mcp
|
|
|
## mcp
|
|
|
```python
|
|
|
MPA_HV_ON()
|
|
|
MPA_HV_Set(2975)
|
... | ... | @@ -140,7 +140,7 @@ roi=4; MPA_ROI_SetUp(535,539,400,400,roi) #set up ROI4 = 400x400 at the center |
|
|
|
|
|
<br>
|
|
|
|
|
|
# vortex
|
|
|
## vortex
|
|
|
For detailed instructions see [manual here](https://git.aps.anl.gov/rodolakis/Macros_29id/-/wikis/RSXS/vortex).
|
|
|
|
|
|
|
... | ... | @@ -164,9 +164,9 @@ mcascan(add_vortex=False) # chooses to ignore vortex channels and removes them f |
|
|
|
|
|
<br>
|
|
|
|
|
|
# analysis
|
|
|
## analysis
|
|
|
|
|
|
## basic mda plots:
|
|
|
### basic mda plots:
|
|
|
```python
|
|
|
# n1,n2,n3 is a scan number
|
|
|
# d1,d2,d3 is a detector number - see table below
|
... | ... | @@ -190,7 +190,7 @@ fit_centroid(n) # to calculate avg centroid position during scan n |
|
|
```
|
|
|
|
|
|
|
|
|
## nData
|
|
|
### nData
|
|
|
```python
|
|
|
from Macros_29id.IEX_nData import *
|
|
|
|
... | ... | @@ -217,7 +217,7 @@ plt.show() |
|
|
```
|
|
|
|
|
|
|
|
|
## mdaFile
|
|
|
### mdaFile
|
|
|
```python
|
|
|
mydata=mdaFile(1,3) # loads mda scans 1 to 3
|
|
|
mydata.update(4) # loads another scan
|
... | ... | @@ -228,7 +228,7 @@ mydata.header[3].UB # return dictionary of UB metadata |
|
|
|
|
|
<br>
|
|
|
|
|
|
# detector number
|
|
|
## detector number
|
|
|
|
|
|
| Detector | Det Number Raw signal | Det Number Det/I0 | Description | PV | Controller |
|
|
|
|:--------: |:---------------------: |:-------------------: |:-----------------------------------------------------: |:--------------------------: |:----------: |
|
... | ... | |