BCDA-APS / bluesky_training

Bluesky training, including instrument package
https://bcda-aps.github.io/bluesky_training/
Other
11 stars 0 forks source link

coordinate scan with external (temperature) controller #36

Open prjemian opened 2 years ago

prjemian commented 2 years ago

Some experiments consist of repeated measurements as some (sample) environmental parameter is changed, either step-wise or continuously. An example would be a series of scaler v motor scans as temperature is stepped through a range.

Motivation

Make this process easier for the APS USAXS and remote users with more challenging measurements. https://github.com/APS-USAXS/ipython-usaxs/issues/482 (@jilavsky)

Easy

This is simple: create a plan that steps temperature and scans scaler v motor at each step.

Challenging

What happens to the sample if the inner scan causes a failure of the RunEngine? Will the sample continue to cook, potentially wasting the sample during an overnight measurement? What if an interrupter (beam dump, for example) pauses the RunEngine?

Goal

Demonstrate how to run an environmental controller that is fail-safe against RE interruptions (or even crashes of the Bluesky kernel).