Skip to content
1 change: 1 addition & 0 deletions src/ibex_bluesky_core/devices/dae/dae.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def __init__(self, prefix: str, name: str = "DAE") -> None:
self.number_of_periods: DaeCheckingSignal[int] = DaeCheckingSignal(
int, f"{dae_prefix}NUMPERIODS"
)
self.max_periods: SignalR[int] = epics_signal_r(int, f"{dae_prefix}NUMPERIODS:MAX")

self.dae_settings = DaeSettings(dae_prefix)
self.period_settings = DaePeriodSettings(dae_prefix)
Expand Down
5 changes: 3 additions & 2 deletions src/ibex_bluesky_core/plans/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def adaptive_scan( # noqa: PLR0913, PLR0917

"""
yield from ensure_connected(dae, block) # type: ignore

yield from bps.mv(dae.number_of_periods, 100)
if periods:
max_periods = yield from bps.rd(dae.max_periods)
yield from bps.mv(dae.number_of_periods, max_periods)

icc = _set_up_fields_and_icc(block, dae, model, periods, save_run)

Expand Down