NSLS-II / nslsii

NSLS-II related devices
BSD 3-Clause "New" or "Revised" License
10 stars 21 forks source link

Improve two-button-shutter stop semantics #164

Open tacaswell opened 1 year ago

tacaswell commented 1 year ago

This is code I had sitting around on my computer.

  1. One exiting of the run loop the RE stops everything it moves
  2. The default "stop" behavior of the shutters is to close themselves
  3. This means you can to do RE(bps.mv(shutter, 'open')) because it will open and then be helpfully closed 🤦🏻

We have run into to this at several beamlines (who locally sub-classed and removed the stop method) so we should make it configurable.

Anyone should feel free to take over this PR.