pcdsutils.ophyd_helpers.acquire_async

async pcdsutils.ophyd_helpers.acquire_async(signal: Signal, duration: int | float) list[str | int | bool | float][source]

Subscribe to signal, acquire data for duration seconds.

Parameters:
signalophyd.Signal

Ophyd object to monitor.

durationnumber

Seconds to acquire for.

Returns:
dataList[PrimitiveType]

The data acquired. Guaranteed to have at least one item.