|
|
|
# List of commonly used python functions for the Kappa Endstation
|
|
|
|
|
|
|
|
---
|
|
|
|
# content
|
|
|
|
|
|
|
|
- [Required Imports](#required-imports)
|
|
|
|
- [Kappa Initialization](#kappa-initialization)
|
|
|
|
- [Kappa Chamber](#kappa-chamber)
|
|
|
|
- [Beamline and energy](#Beamline and energy)
|
|
|
|
- [Motor Moves and Scans](#Motor Moves and Scans)
|
|
|
|
- [X-ray](#x-ray)
|
|
|
|
- [Motors and Scans](#motors-and-scans)
|
|
|
|
- [mcp](#mcp)
|
|
|
|
- [vortex: multichannel analyzer (mca)](#vortex)
|
|
|
|
- [analysis](#analysis)
|
|
|
|
- [detector number](#detector-number)
|
|
|
|
- [troubleshooting](#troubleshooting)
|
|
|
|
|
|
|
|
---
|
|
|
|
## Required Imports
|
|
|
|
from iexcode.macros.Kappa import *
|
|
|
|
from iexcode.macros.xrays import *
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Kappa Initialization
|
|
|
|
tey,d3,d4,mesh,tth_pv,tthdet,ls331 = kappa_init('UserName', xrays=True)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Kappa Chamber
|
|
|
|
Kappa_get_all()
|
|
|
|
Kappa_safe_state()
|
|
|
|
-------------------------------------------------------------
|
|
|
|
Kappa_light(ON_OFF)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Beamline and energy
|
|
|
|
safe_state() #put the beamline in a safe state
|
|
|
|
-------------------------------------------------------------
|
|
|
|
Kappa_light(ON/OFF) #turn on/off light in Kappa chamber
|
|
|
|
|
|
|
|
## X-ray optics and energy
|
|
|
|
xrays_get_all() #get current beamline settings
|
|
|
|
energy_get_all() #get current ID and mono settings
|
|
|
|
energy_get() #return the photon energy
|
| ... | ... | @@ -56,7 +45,7 @@ |
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## **Motor Moves and Scans**
|
|
|
|
## Motors and Scans
|
|
|
|
There are seven motors in Kappa:
|
|
|
|
`mot` = `tth`, `th`, `chi`, `phi`, `x`, `y`, `z`
|
|
|
|
|
| ... | ... | |