bluesky / ophyd-async

Hardware abstraction for bluesky written using asyncio
https://blueskyproject.io/ophyd-async
BSD 3-Clause "New" or "Revised" License
12 stars 26 forks source link

Make it easy to make a hardware backed soft signal #578

Closed DominicOram closed 2 months ago

DominicOram commented 2 months ago

Often the soft signals on a device may be derived from the value of real hardware signals. As such, when the soft signal is read it should read the real hardware and provide its value based on this. This can be done by having the device optionally provide a readback function when creating the signal.

See https://github.com/DiamondLightSource/dodal/issues/782 for more detail on the usecase and https://github.com/DiamondLightSource/dodal/pull/789 for a solution.

Tom-Willemsen commented 2 months ago

This sounds quite similar to https://github.com/bluesky/ophyd-async/issues/525 , maybe good to add your use-case to that issue as well?

DominicOram commented 2 months ago

Thanks, I agree, closing this as a duplicate.