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