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, 105)) Transient Scan ID: 1 Time: 2021-0507-1407 2117:4900:1030 Persistent Unique Scan ID: '84de9d9fe1a966bd-24a4c12d-4065429d-bb0795ed-669069fe59a4ea73f7dd7211' New stream: 'primary' +-----------+------------+-------------+-------------+ | seq_num | time | fast_motor1 | fast_motor2 | +-----------+------------+-------------+-------------+ | 1 | 2117:4900:2246.93 | 1 | 1 | | 2 | 2117:4900:2459.01 | 23.25 | 23.25 | | 3 | 2117:4901:2508.13 | 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 5.5 | 5.5 8 | | 94 | 2117:4901:3118.73 | 97.75 | 9 7.75 | | 105 | 2117:4901:3228.83 | 10 | 10 | +-----------+------------+-------------+-------------+ generator scan ['84de9d9fe1a966bd'] (scan num: 1) Out[4]: ('84de9d9fe1a966bd-24a4c12d-4065429d-bb0795ed-669069fe59a4ea73f7dd7211',) In [5]: daq.push_socket.send_string('shutdown') In [6]: daq.comm_thread.join() In [7]: quit rix-daq:~> |
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