malcolm.modules.pandablocks.controllers

class malcolm.modules.pandablocks.controllers.PandABlockController(client: Anno(name='AClient', typ=<class 'malcolm.modules.pandablocks.pandablocksclient.PandABlocksClient'>, description='The Client to use to get and set data'), mri_prefix: Anno(name='AMri', typ=<class 'str'>, description='The Malcolm Resource Identifier for the Block produced'), block_name: Anno(name='ABlockName', typ=<class 'str'>, description='The name of the Block, like LUT1 or PCAP'), block_data: Anno(name='ABlockData', typ=<class 'malcolm.modules.pandablocks.pandablocksclient.BlockData'>, description='The BlockData object showing the fields of the Block'), doc_url_base: Anno(name='ADocUrlBase', typ=<class 'str'>, description='Documentation URL base to get HTML help pages from'))[source]
Parameters
  • client (PandABlocksClient) – The Client to use to get and set data

  • mri_prefix (str) – The Malcolm Resource Identifier for the Block produced

  • block_name (str) – The name of the Block, like LUT1 or PCAP

  • block_data (BlockData) – The BlockData object showing the fields of the Block

  • doc_url_base (str) – Documentation URL base to get HTML help pages from

class malcolm.modules.pandablocks.controllers.PandAManagerController(mri: Anno(name='AMri', typ=<class 'str'>, description='The Malcolm Resource Identifier for the Block produced'), config_dir: Anno(name='AConfigDir', typ=<class 'str'>, description='Directory to write save/load config to'), hostname: Anno(name='AHostname', typ=<class 'str'>, description='Hostname of the box') = 'localhost', port: Anno(name='APort', typ=<class 'int'>, description='Port number of the TCP server control port') = 8888, doc_url_base: Anno(name='ADocUrlBase', typ=<class 'str'>, description='Documentation URL base to get HTML help pages from') = 'https://pandablocks-fpga.readthedocs.io/en/autogen', poll_period: Anno(name='APollPeriod', typ=<class 'float'>, description='Time between polls of PandA current value changes') = 0.1, template_designs: Anno(name='ATemplateDesigns', typ=<class 'str'>, description='A directory of templates with which to initially populate designs Attribute. These cannot be saved over.') = '', initial_design: Anno(name='AInitialDesign', typ=<class 'str'>, description='Design to load at init') = '', description: Anno(name='ADescription', typ=<class 'str'>, description='Description of the Block produced by the controller') = '')[source]
Parameters
  • mri (str) – The Malcolm Resource Identifier for the Block produced

  • config_dir (str) – Directory to write save/load config to

  • hostname (str) – Hostname of the box

  • port (int) – Port number of the TCP server control port

  • doc_url_base (str) – Documentation URL base to get HTML help pages from

  • poll_period (float) – Time between polls of PandA current value changes

  • template_designs (str) – A directory of templates with which to initially populate designs Attribute. These cannot be saved over.

  • initial_design (str) – Design to load at init

  • description (str) – Description of the Block produced by the controller