The XML configuration file

From NAMIC Wiki
Revision as of 15:13, 15 May 2007 by Hliu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home < The XML configuration file

NaviTrack uses an XML file to configure its operations and data flow. In this tutorial, we need two xml files: one for sending data out and one for receiving:

Configuration file for sending data

<?xml version="1.0" encoding="UTF-8"?>
<OpenTracker>
   <configuration>
       <ConsoleConfig interval="10" headerline="NaviTrack Sending" display="on">
       </ConsoleConfig>
   </configuration>
   <ConsoleSink>
       <NetworkSink mode="unicast" name="dummy" number="1" port="54321">
           <ConsoleSource number="1"/>
       </NetworkSink>
   </ConsoleSink>
</OpenTracker>

Download this file here: Send.txt.

Configuration file for receiving data

<?xml version="1.0" encoding="UTF-8"?>
<OpenTracker>
   <configuration>
       <ConsoleConfig interval="10" headerline="NaviTrack Receiving" display="on"/>
   </configuration>
   <ConsoleSink>
   <FileSink file="./file-out.txt">
       <NetworkSource mode="unicast" number="1" address="localhost" port="54321"/>
   </FileSink>
   </ConsoleSink>
</OpenTracker>

Download this file here: Receive.txt.