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(pv: str)[source]#
Bases:
DeviceMethods
childrenInitialises all blocks and connects them.
Set a block on the panda.
Set
self.name=nameand eachself.child.name=name+"-child".Given a block name and number, return information about a block.
Attributes
ctxtReturn the name of the Device
parentThe parent Device if it exists
pulseseqpcap- 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=False) 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.