Difference between revisions of "Testing your application"

From NAMIC Wiki
Jump to: navigation, search
 
Line 1: Line 1:
There are two configuration (xml) files. One is used to run the splot server and the other is used to configure the IGT Demo module in Slicer, which receives tracking data from the splot server by network.
+
Here comes the point you want to test how your application works. At this moment, we're not going to use any real tracking device; instead, we will use ConsoleSource to simulate the generation of tracking data.
  
== SPLOT configuration file ==
+
== Testing procedure ==
  
  <?xml version="1.0" encoding="UTF-8"?>
+
* Save the XMl files in the previous page into: '''send.xml''' and '''receive.xml''' (or use your preferred names)
  <!DOCTYPE OpenTracker SYSTEM "../data/splot.dtd">
+
* On your computer, create t
 
 
  <OpenTracker>
 
  <configuration>
 
      <NDIConfig device="/dev/ttyUSB0"/>
 
  <ConsoleConfig interval="10" headerline="Aurora Test" display="on"/>
 
  </configuration>
 
  <ConsoleSink>
 
  <NetworkSink mode="unicast" name="station name" number="1" port="54321">
 
  <AuroraSource toolID="Traxtal Tech00035330003"/>
 
  </NetworkSink>
 
  </ConsoleSink>
 
  </OpenTracker>
 
  
== Slicer configuration file ==
 
  
  <?xml version="1.0" encoding="UTF-8"?>
+
== How to use ConsoleSource ==
  <!DOCTYPE OpenTracker SYSTEM "your-path/opentracker.dtd">
 
 
 
  <OpenTracker>
 
    <configuration>
 
   
 
    </configuration>
 
   
 
    <Callback name="cb1">
 
    <NetworkSource mode="unicast" number="1" address="localhost" port="54321"/>
 
    </Callback>
 
   
 
  </OpenTracker>
 

Revision as of 16:13, 11 May 2007

Home < Testing your application

Here comes the point you want to test how your application works. At this moment, we're not going to use any real tracking device; instead, we will use ConsoleSource to simulate the generation of tracking data.

Testing procedure

  • Save the XMl files in the previous page into: send.xml and receive.xml (or use your preferred names)
  • On your computer, create t


How to use ConsoleSource