APS-4ID-POLAR / polar_instrument

Bluesky setup for the POLAR beamline
0 stars 0 forks source link

New diffractometer setup #3

Closed gfabbris closed 9 months ago

gfabbris commented 10 months ago

New devices:

To test this, first make sure that you are in the correct branch (new-diffractometer), start bluesky using blueskyStarter.sh, then:

In [6]: simdet.count_time = 0.1

In [7]: RE(bp.rel_scan([simdet], diffract.mu, -2, 2, 10))

Transient Scan ID: 68     Time: 2023-09-12 15:17:03
Persistent Unique Scan ID: '3c2bf61f-11df-420d-83a7-6670417dc8f9'
New stream: 'baseline'
New stream: 'primary'
+-----------+------------+-------------+------------+
|   seq_num |       time | diffract_mu |     simdet |
+-----------+------------+-------------+------------+
|         1 | 15:17:04.1 |      -2.000 |      0.358 |
|         2 | 15:17:04.2 |      -1.556 |      0.348 |
|         3 | 15:17:04.4 |      -1.111 |      0.721 |
|         4 | 15:17:04.5 |      -0.667 |      0.938 |
|         5 | 15:17:04.6 |      -0.222 |      0.288 |
|         6 | 15:17:04.8 |       0.222 |      0.863 |
|         7 | 15:17:04.9 |       0.667 |      0.065 |
|         8 | 15:17:05.0 |       1.111 |      0.185 |
|         9 | 15:17:05.1 |       1.556 |      0.753 |
|        10 | 15:17:05.3 |       2.000 |      0.170 |
+-----------+------------+-------------+------------+
generator rel_scan ['3c2bf61f'] (scan num: 68)
Out[7]: ('3c2bf61f-11df-420d-83a7-6670417dc8f9',)