dodal.devices.fast_shutter.GenericFastShutter#
- class dodal.devices.fast_shutter.GenericFastShutter[source]#
Enum device specialised for a fast shutter with configured open_state and close_state so it is generic enough to be used with any device or plan without knowing the specific enum to use.
For example:
await shutter.set(shutter.open_state) await shutter.set(shutter.close_state) await shutter.open.set(True) await shutter.open.set(False)
OR:
run_engine(bps.mv(shutter, shutter.open_state)) run_engine(bps.mv(shutter, shutter.close_state)) run_engine(bps.mv(shutter.open, True)) run_engine(bps.mv(shutter.open, False))
- Parameters:
Methods
set(state)Attributes