Note

Ophyd async is included on a provisional basis until the v1.0 release and may change API on minor release numbers before then

ophyd_async.panda.PandA#

class ophyd_async.panda.PandA(prefix: str, name: str = '')[source]#

Bases: Device

Methods

children

connect

Initialises all blocks and connects them.

set_attribute

Set a block on the panda.

set_name

Set self.name=name and each self.child.name=name+"-child".

verify_block

Given a block name and number, return information about a block.

Attributes

ctxt

name

Return the name of the Device

parent

The parent Device if it exists

pulse

seq

pcap

verify_block(name: str, num: int | None)[source]#

Given a block name and number, return information about a block.

set_attribute(name: str, num: int | None, block: Device)[source]#

Set a block on the panda.

Need to be able to set device vectors on the panda as well, e.g. if num is not None, need to be able to make a new device vector and start populating it…

async connect(sim: bool = False, timeout: float = 10.0) None[source]#

Initialises all blocks and connects them.

First, checks for pvi information. If it exists, make all blocks from this. Then, checks that all required blocks in the PandA have been made.

If there’s no pvi information, that’s because we’re in sim mode. In that case, makes all required blocks.

property name: str#

Return the name of the Device

set_name(name: str)#

Set self.name=name and each self.child.name=name+"-child".

Parameters:

name – New name to set