Note

Ophyd async is considered experimental until the v1.0 release and may change API on minor release numbers before then

ophyd_async.epics.testing#

Members

ExampleCaDevice

ExampleEnum

ExamplePvaDevice

connect_example_device

Helper function to return a connected example device.

get_example_ioc

Get TestingIOC instance with the example databases loaded.

TestingIOC

generate_random_PV_prefix

async ophyd_async.epics.testing.connect_example_device(ioc: TestingIOC, protocol: Literal['ca', 'pva']) ExamplePvaDevice | ExampleCaDevice[source]#

Helper function to return a connected example device.

Parameters:
  • ioc (TestingIOC) – TestingIOC configured to provide the records needed for the device

  • protocol (Literal["ca", "pva"]) – The transport protocol of the device

Returns:

a connected EpicsDevice with signals of many EPICS record types

Return type:

ExamplePvaDevice | ExampleCaDevice

ophyd_async.epics.testing.get_example_ioc() TestingIOC[source]#

Get TestingIOC instance with the example databases loaded.

Returns:

instance with test_records.db loaded for ExampleCaDevice and test_records.db and test_records_pva.db loaded for ExamplePvaDevice.

Return type:

TestingIOC