Page History
...
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]) INFO configure: 2 motors Out[3]: ({}, {}) In [4]: RE(bp.scan(dets, sim.fast_motor1, 1, 10, sim.fast_motor2, 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 | +-----------+------------+-------------+-------------+ | 1 | 21:49:22.9 | 1 | 1 | | 2 | 21:49:24.0 | 2 | 2 | | 3 | 21:49:25.1 | 3 | 3 | | 4 | 21:49:26.2 | 4 | 4 | | 5 | 21:49:27.3 | 5 | 5 | | 6 | 21:49:28.4 | 6 | 6 | | 7 | 21:49:29.5 | 7 | 7 | | 8 | 21:49:30.6 | 8 | 8 | | 9 | 21:49:31.7 | 9 | 9 | | 10 | 21:49:32.8 | 10 | 10 | +-----------+------------+-------------+-------------+ generator scan ['84de9d9f'] (scan num: 1) Out[4]: ('84de9d9f-24a4-4065-bb07-669069fe59a4',) In [5]: daq.push_socket.send_string('shutdown') In [6]: daq.comm_thread.join() In [87]: quit |
If the "shutdown" and "join" commands are not issued then the "quit" command will hang, and you will have to control-C to end the program.
Overview
Content Tools