AT-TPC DAQ
latest
  • Overview of DAQ system
  • Installation and initial setup
  • Configuring the system
  • Logging information about runs
  • Operating the DAQ system
  • Developer documentation
    • Structure of the DAQ system
    • Modeling the system in code
      • DAQ system components
        • The ECC server
        • The data router
        • The data source
      • Config file sets
      • Run and experiment metadata
    • Interacting with the system
    • Interfacing with the remote processes
    • Asynchronous tasks and Celery
AT-TPC DAQ
  • Docs »
  • Developer documentation »
  • Modeling the system in code »
  • attpcdaq.daq.models.DataSource »
  • attpcdaq.daq.models.DataSource.get_data_link_xml
  • Edit on GitHub

attpcdaq.daq.models.DataSource.get_data_link_xml¶

DataSource.get_data_link_xml()[source]¶

Get an XML representation of the data link for this source.

This is used by the ECC server to establish a connection between the CoBo or MuTAnT and the data router. The format is as follows:

<DataLink>
    <DataSender id="[DataSource.name]">
    <DataRouter name="[DataSource.data_router_name]"
                ipAddress="[DataSource.data_router_ip_address]"
                port="[DataSource.data_router_port]"
                type="[DataSource.data_router_type]">
</DataLink>

This must be wrapped in <DataLinkSet> tags before sending it to the ECC server.

Returns:The XML data for this source.
Return type:xml.etree.ElementTree.Element
Next Previous

© Copyright 2016, AT-TPC Group. Revision c2d09fa8.

Built with Sphinx using a theme provided by Read the Docs.