| ... | ... | @@ -14,19 +14,26 @@ |
|
|
|
- [Troubleshooting](#troubleshooting)
|
|
|
|
|
|
|
|
## Required Imports
|
|
|
|
```python
|
|
|
|
from iexcode.macros.Kappa import *
|
|
|
|
from iexcode.macros.xrays import *
|
|
|
|
```
|
|
|
|
|
|
|
|
## Kappa Initialization
|
|
|
|
```python
|
|
|
|
tey,d3,d4,mesh,tth_pv,tthdet,ls331 = kappa_init('UserName', xrays=True)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Kappa Chamber
|
|
|
|
```python
|
|
|
|
Kappa_get_all() #print Kappa status
|
|
|
|
Kappa_safe_state() #put Kappa chamber in a safe state
|
|
|
|
safe_state() #put the beamline in a safe state
|
|
|
|
Kappa_light(ON_OFF) #turn on/off the light in Kappa chamber
|
|
|
|
```
|
|
|
|
|
|
|
|
## X-ray
|
|
|
|
```python
|
|
|
|
xrays_get_all() #get current beamline settings
|
|
|
|
energy_get_all() #get current ID and mono settings
|
|
|
|
energy_get() #return the photon energy
|
| ... | ... | @@ -43,11 +50,12 @@ |
|
|
|
m3r_align() #align pre-Kappa beam position
|
|
|
|
-------------------------------------------------------------
|
|
|
|
resolution() #prints resolution for current setting
|
|
|
|
```
|
|
|
|
|
|
|
|
## Motors and Scans
|
|
|
|
There are seven motors in Kappa:
|
|
|
|
`mot` = `tth`, `th`, `chi`, `phi`, `x`, `y`, `z`
|
|
|
|
|
|
|
|
```python
|
|
|
|
mprint() #prints current position
|
|
|
|
mvsample(['', x, y, z, th, chi, phi]) #move to position
|
|
|
|
mvxyz(x, y, z) #move to sample xyz
|
| ... | ... | @@ -66,7 +74,7 @@ There are seven motors in Kappa: |
|
|
|
scan_mesh(motor1, start1, end1, step1, motor2, start2, end2, step2) #scan two motors
|
|
|
|
map_orientation(th_start, th_stop, th_step, chi_start, chi_stop, chi_step) #map out intensities in a solid angle, used for peak searching
|
|
|
|
map_sample(y_start, y_stop, y_step, x_start, x_stop, x_step) #map out intensities in real space, used for sample spot searching
|
|
|
|
|
|
|
|
```
|
|
|
|
---
|
|
|
|
|
|
|
|
## Diffraction
|
| ... | ... | |