Page History
...
Code Block | ||
---|---|---|
| ||
#!/bin/bash while [ 1 ] do echo going to configured daqstate -p 0 -P tmo -C drp-neh-ctl001 --state configured sleep 5 echo going to running daqstate -p 0 -P tmo -C drp-neh-ctl001 --state running sleep 600 done |
Running Scans with Hutch Python
An example hutch-python scan session in RIX:
Code Block |
---|
rix-daq:~> rix3
Loading local disk python env pcds-4.1.4
_ _____ _ _
(_) | __ \ | | | |
_ __ ___ _| |__) | _| |_| |__ ___ _ __
| '__| \ \/ / ___/ | | | __| '_ \ / _ \| '_ \
| | | |> <| | | |_| | |_| | | | (_) | | | |
|_| |_/_/\_\_| \__, |\__|_| |_|\___/|_| |_|
__/ |
|___/
INFO Selected default hutch-python daq platform: 0
INFO Loading debug tools...
(lines removed for brevity)
In [1]: daq=get_daq()
In [2]: dets = [daq]
In [3]: daq.configure(motors=[sim.fast_motor1, sim.fast_motor2, step_value])
INFO configure: 3 motors
Out[3]: ({}, {})
In [4]: RE(bp.scan(dets, sim.fast_motor1, 1, 10, sim.fast_motor2, 1, 10, step_va
...: lue, 1, 10, 10))
Transient Scan ID: 1 Time: 2021-05-14 21:49:10
Persistent Unique Scan ID: '84de9d9f-24a4-4065-bb07-669069fe59a4'
New stream: 'primary'
+-----------+------------+-------------+-------------+------------+
| seq_num | time | fast_motor1 | fast_motor2 | step_value |
+-----------+------------+-------------+-------------+------------+
| 1 | 21:49:22.9 | 1 | 1 | 1 |
| 2 | 21:49:24.0 | 2 | 2 | 2 |
| 3 | 21:49:25.1 | 3 | 3 | 3 |
| 4 | 21:49:26.2 | 4 | 4 | 4 |
| 5 | 21:49:27.3 | 5 | 5 | 5 |
| 6 | 21:49:28.4 | 6 | 6 | 6 |
| 7 | 21:49:29.5 | 7 | 7 | 7 |
| 8 | 21:49:30.6 | 8 | 8 | 8 |
| 9 | 21:49:31.7 | 9 | 9 | 9 |
| 10 | 21:49:32.8 | 10 | 10 | 10 |
+-----------+------------+-------------+-------------+------------+
generator scan ['84de9d9f'] (scan num: 1)
Out[4]: ('84de9d9f-24a4-4065-bb07-669069fe59a4',)
In [5]: quit
|
Overview
Content Tools