| ... | ... | @@ -70,7 +70,7 @@ There are seven motors in Kappa: |
|
|
|
---
|
|
|
|
|
|
|
|
## Diffraction
|
|
|
|
|
|
|
|
```python
|
|
|
|
wh() #print current position
|
|
|
|
pa() #print current sample orientation
|
|
|
|
wm() #print motor positions and constraints
|
| ... | ... | @@ -93,6 +93,7 @@ There are seven motors in Kappa: |
|
|
|
scanhkl(hkl1, hkl2, npts) #scan a trajectory in r-space
|
|
|
|
scanhkl_lst(hkl_lst) #scan a given trajectory in r-space
|
|
|
|
scanE_fixQ(hv_list, ID_tracking=False) #scan X-ray energy at a fixed Q
|
|
|
|
```
|
|
|
|
|
|
|
|
## Kappa Detectors
|
|
|
|
|
| ... | ... | @@ -117,6 +118,7 @@ tthdet.get() # returns the name of the current detector |
|
|
|
|
|
|
|
### Keithley Current Amplifiers
|
|
|
|
#### Attributes:
|
|
|
|
```python
|
|
|
|
[det].state
|
|
|
|
[det].current
|
|
|
|
[det].rate
|
| ... | ... | @@ -133,8 +135,10 @@ tthdet.get() # returns the name of the current detector |
|
|
|
[det].digital_filter_control
|
|
|
|
[det].set_avg_pts
|
|
|
|
[det].set_avg_time
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Methods:
|
|
|
|
```python
|
|
|
|
[det].acquire()
|
|
|
|
[det].refresh()
|
|
|
|
[det].refresh_all()
|
| ... | ... | @@ -145,8 +149,10 @@ tthdet.get() # returns the name of the current detector |
|
|
|
[det].set_avg_time(dwell_time_second)
|
|
|
|
[det].set_avg_pts(n_pts)
|
|
|
|
[det].set_default()
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Functions:
|
|
|
|
```python
|
|
|
|
ca_reset_all() #resets all the connected current amplifiers
|
|
|
|
ca_average(avg_pts) #set up average reading using number of points
|
|
|
|
ca_average_time(dwell_time) #set up average reading using dwell_time
|
| ... | ... | @@ -154,10 +160,11 @@ tthdet.get() # returns the name of the current detector |
|
|
|
ca_rate(rate) #set rate for all ca's in the endstation
|
|
|
|
ca_live() #puts all the Keithley in live mode
|
|
|
|
ca_passive() #puts all the Keithley in passive mode
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
### SRS Current Amplifiers
|
|
|
|
#### Attributes:
|
|
|
|
```python
|
|
|
|
[det].scaler
|
|
|
|
[det].sens_num
|
|
|
|
[det].sens_unit
|
| ... | ... | @@ -174,8 +181,10 @@ tthdet.get() # returns the name of the current detector |
|
|
|
[det].gain_mode
|
|
|
|
[det].invert_on
|
|
|
|
[det].blank_on
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Methods:
|
|
|
|
```python
|
|
|
|
[det].reset_filter()
|
|
|
|
[det].set_all()
|
|
|
|
[det].reset_default()
|
| ... | ... | @@ -188,10 +197,12 @@ tthdet.get() # returns the name of the current detector |
|
|
|
[det].set_gain(gain, unit)
|
|
|
|
[det].set_offset(value, gain, unit)
|
|
|
|
[det].auto_dark_counts(target=1000)
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Functions:
|
|
|
|
```python
|
|
|
|
scaler_cts(time_seconds=0.1) #sets the scalers counting
|
|
|
|
|
|
|
|
```
|
|
|
|
-----------------------------------------------------------
|
|
|
|
|
|
|
|
With shutter close or slit at 0 (faster), 'INPUT OFFSET' set 'ON' and 'UNCAL'
|
| ... | ... | @@ -234,6 +245,7 @@ data = IEX_nData(scan_num_start, scan_num_stop/inf, path=path, prefix=prefix) |
|
|
|
```
|
|
|
|
|
|
|
|
### raw data
|
|
|
|
For a direct access to the raw data:
|
|
|
|
```python
|
|
|
|
x = data.mda[scan_num].posx[0].data
|
|
|
|
y = data.mda[scan_num].det[det_num].data
|
| ... | ... | |