|
|
|
|
|
<br>
|
|
|
|
|
|
# Outline:
|
|
|
# Outline
|
|
|
|
|
|
- [detectors](#Detectors)
|
|
|
- [energy](#Energy)
|
... | ... | @@ -19,7 +19,7 @@ |
|
|
|
|
|
<br>
|
|
|
|
|
|
## Detectors:
|
|
|
## Detectors
|
|
|
|
|
|
|
|
|
| Name | Description | Ang. acceptance<br>HxV (deg) | Offset | Max tth | Det Num | Det/ $I_0$ Num |
|
... | ... | @@ -44,7 +44,7 @@ See below for a complete list of signals recorded during a scan and their corres |
|
|
|
|
|
<br>
|
|
|
|
|
|
## Energy:
|
|
|
## Energy
|
|
|
|
|
|
|
|
|
```python
|
... | ... | @@ -68,7 +68,7 @@ scanXAS_BL(E_Ti,mcp=True,m3r=True);plot_latest() |
|
|
```
|
|
|
<br>
|
|
|
|
|
|
# Diffractometer:
|
|
|
# Diffractometer
|
|
|
|
|
|
- m1 = kphi
|
|
|
- m2 = x
|
... | ... | @@ -92,7 +92,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)
|
... | ... | @@ -112,7 +112,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)
|
... | ... | @@ -143,7 +143,7 @@ roi=4; MPA_ROI_SetUp(535,539,400,400,roi) #set up ROI4 = 400x400 at the center |
|
|
<br>
|
|
|
|
|
|
# Vortex
|
|
|
For detailed instructions on how to turn vortex on/off and set parameters see [manual here](https://git.aps.anl.gov/rodolakis/Macros_29id/-/wikis/RSXS/vortex).
|
|
|
For detailed instructions see [manual here](https://git.aps.anl.gov/rodolakis/Macros_29id/-/wikis/RSXS/vortex).
|
|
|
|
|
|
|
|
|
```python
|
... | ... | @@ -156,17 +156,17 @@ mcacounttime(2) # Sets count time for mca and other det to 2s |
|
|
mcascan() # adds vortex channels as detectors in scan detector list (see detector numbers below)
|
|
|
# adds trigger to run mca in scan
|
|
|
|
|
|
mcascan(save=True) # same as above + saves mca spectra taken at each point of the scan
|
|
|
mcascan(save_image=True) # same as above + saves mca spectra taken at each point of the scan
|
|
|
# save directory is determined by mda directory in scan record
|
|
|
# MCA spectra are saved into subdirectories of the scan files / scan#
|
|
|
|
|
|
mcascan(add_vortex=False) # chooses to ignore vortex chanels and removes them from scan detector list
|
|
|
mcascan(add_vortex=False) # chooses to ignore vortex channels and removes them from scan detector list
|
|
|
|
|
|
```
|
|
|
|
|
|
<br>
|
|
|
|
|
|
# Plot:
|
|
|
# Plot
|
|
|
|
|
|
## Using basic mda plots:
|
|
|
```python
|
... | ... | @@ -192,7 +192,7 @@ fit_centroid(n) # to calculate avg centroid position during scan n |
|
|
```
|
|
|
|
|
|
|
|
|
## Using nData:
|
|
|
## Using nData
|
|
|
```python
|
|
|
from Macros_29id.IEX_nData import *
|
|
|
|
... | ... | @@ -219,7 +219,7 @@ plt.show() |
|
|
```
|
|
|
|
|
|
|
|
|
## Using mdaFile:
|
|
|
## Using mdaFile
|
|
|
```python
|
|
|
mydata=mdaFile(1,3) # loads mda scans 1 to 3
|
|
|
mydata.update(4) # loads another scan
|
... | ... | |