Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
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.configure(motors=[sim.fast_motor1, sim.fast_motor2],events=10,record=True)
INFO     configure - configure: 2 motors
Out[1]: ({}, {})

In [2]: RE(bp.scan([daq], sim.fast_motor1, 1, 10, sim.fast_motor2, 1, 10, 5))


Transient Scan ID: 1     Time: 2021-10-20 12:06:21
Persistent Unique Scan ID: '81544aea-5fb7-4017-b03d-a1ea8d15c174'
New stream: 'primary'
+-----------+------------+-------------+-------------+
|   seq_num |       time | fast_motor1 | fast_motor2 |
+-----------+------------+-------------+-------------+
|         1 | 12:06:33.3 |           1 |           1 |
|         2 | 12:06:34.4 |        3.25 |        3.25 |
|         3 | 12:06:35.5 |         5.5 |         5.5 |
|         4 | 12:06:36.6 |        7.75 |        7.75 |
|         5 | 12:06:37.7 |          10 |          10 |
+-----------+------------+-------------+-------------+
generator scan ['81544aea'] (scan num: 1)



Out[2]: ('81544aea-5fb7-4017-b03d-a1ea8d15c174',)

In [3]: quit
rix-daq:control>  

In UED, Zach also recommended this way of doing a scan with a fake motor inside hutch python:

Code Block
RE(motor_pv_scan('TEST:MOT', 1, 10, 10, events=360, record=False))

These are the parameters that are settable in daq.configure (see these with "daq.configure?" in hutch-python):

...