aps-8id-dys / bluesky

XPCS bluesky instrument configuration
Other
2 stars 0 forks source link

Scan mirror1.X while recording areadet flag1 hdf at each point #31

Open prjemian opened 2 months ago

prjemian commented 2 months ago
prjemian commented 2 months ago

Expect this command should scan from 1 to 5 with 11 points, producing a single HDF5 file at each point:

RE(bp.scan([flag1ad], mr1.x, 1, 5, 11))

But, might need some attention to how the area detector is configured before the scan. Also, to get scalar values (total counts in ROI), need to identify and add that python object as additional detector.

prjemian commented 2 months ago
In [14]: mr1.x.position
Out[14]: 1540.3894

In [15]: mr1.x.limits
Out[15]: (1539.03575, 1549.03575)

Use different start and end positions, within the limits, to test the scan. Such as 1542, 1545, 11

prjemian commented 2 months ago

The names of the parts:

In [16]: mr1.component_names
Out[16]: ('x', 'y', 'coarse_pitch', 'fine_pitch', 'flag')