dodal.beamlines.adsim#

Module Attributes

devices

Beamline module for use with the simulated AreaDetector and motors.

Functions

dodal.beamlines.adsim.devices = <DeviceManager: 2 devices>#

Beamline module for use with the simulated AreaDetector and motors. These devices are simulated at the EPICS level, enabling testing of dodal and ophyd-async against what appear to be “real” signals.

Usage Example#

Start the simulated beamline by following the epics-containers tutorial at https://epics-containers.github.io/main/tutorials/launch_example.html And ensure that the signals are visible:

sh
export EPICS_CA_ADDR_LIST=127.0.0.1:9064
export EPICS_CA_NAME_SERVERS=127.0.0.1:9064
export EPICS_PVA_NAME_SERVERS=127.0.0.1:9075

How to use the devices in a plan:#

In an ipython terminal run:

python
from bluesky.run_engine import RunEngine

from dodal.beamlines.adsim import devices
from dodal.plans import count


run_engine = RunEngine()

built = devices.build_and_connect().or_raise()
d = built["det"]
s = built["stage"]

run_engine(count([d], num=10))
dodal.beamlines.adsim.path_provider()[source]#