Open DominicOram opened 3 months ago
I suggest:
# in ophyd_async.epics.signal
def epics_mbb_direct_r(pv: str) -> DeviceVector[SignalR[bool]]:
return DeviceVector(
{
i: epics_signal_r(bool, f"{pv}.B{i:X}")
for i in range(16)
}
)
I believe I tried bool
s, which would be the better solution, and they failed to connect
I believe I tried
bool
s, which would be the better solution, and they failed to connect
We should fix that too then...
An mbb(i/o)Direct record has the fields B0...BF (see https://epics.anl.gov/EpicsDocumentation/AppDevManuals/RecordRef/Recordref-26.html). It is probably quite likely that people will want to alias these into individual signals. e.g. In the
Attenuator
indodal
for theDEC_TO_BIN
PV we have:This is quite a bit of boilerplate that is potentially useful in a generic way e.g. it would be nice if in
dodal
we could do something like:to achieve the same result.