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
Initialises all blocks and connects them.
Set a block on the panda.
Set
self.name=name
and eachself.child.name=name+"-child"
.Given a block name and number, return information about a block.
Attributes
ctxt
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.