Hi Arefin, <br><br>doing a quick search for the error message, I suspect that you are seeing the following logic being invoked (feel free to confirm with prints or a debugger)...<br><br>void <br>TrackerConfigurationXMLFileReaderBase::EndElement( const char *name )<br>
{<br>...<br><br> if( itksys::SystemTools::Strucmp( name, "tracking_system" ) == 0 )<br> {<br> this->m_ReadingTrackerConfiguration = false;<br> //see that we got all the data, perhaps replace with a more<br>
//specific message with regard to the missing tag(s)<br><b> if( !HaveConfigurationData() )<br> {<br> throw FileFormatException( std::string( "Missing tag(s) in xml file." ) );<br> }</b><br>
}<br><br>This points to the question: why does the xml file that you use not provide the needed configuration data?<br><br>This may require you to either compare your xml file with some for other trackers, or use a debugger to nail this down on a step-by-step basis. <br>
<br>Let us know how you get on. <br><br>Michel <br><br><br><div class="gmail_quote">On Wed, May 18, 2011 at 12:01 PM, Arefin Shamsil <span dir="ltr"><<a href="mailto:marefin@uwo.ca">marefin@uwo.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hi All,<br><br>I have built the Tracking Volume Viewer application successfully. When I run it in Visual Studio 2010, it shows me a window with four quadrants. But they are all empty. I loaded the xml file containing the tracker and tool information into the running application window. I have pasted the xml script below. It is a modified version of the xml file given in the IGSTK/Data/TrackerConfiguration directory (after building IGSTK) and named as polarisHybridConfiguration.xml <br>
<br>I have a NDI Polaris system, and a marker tool which I obtained from NDI 6D Architect software. I would like to track that marker using Polaris through the TrackingVolumeViewer application to make sure that::: I can track my marker(s), the setup is done correctly and to obtain a physical measurement of the Field of View of my Polaris attained through the IGSTK TrackingVolumeViewer application. <br>
<br>The issue I am having now is:::: I loaded the modified xml file into the application, but i get the message [Missing tag(s) in xml file] once I load the file. And then nothing is shown in any of the four quadrants of the application window as expected in <a href="http://public.kitware.com/IGSTKWIKI/index.php/Tracking_Volume_Viewer" target="_blank">http://public.kitware.com/IGSTKWIKI/index.php/Tracking_Volume_Viewer</a><br>
<br>Please let me know if my steps of actions are not clear enough and I will try to explain more clearly. I would appreciate if anyone could guide me to understand the current issue I am facing. <br><br>Thanks & Regards<br>
Arefin<br><br>----------------------------- My own XML file ----------------------<br><br><?xml version="1.0" encoding="ISO-8859-1"?><br><br><tracking_system type = "polaris hybrid"><br>
<br> <refresh_rate> 30 </refresh_rate><br><br> <serial_communication> <br> <com_port>3</com_port><br> <baud_rate>115200</baud_rate> <br> <data_bits>8</data_bits><br>
<parity>N</parity> <br> <stop_bits>1</stop_bits> <br> <hand_shake>0</hand_shake> <br> </serial_communication><br><br> <tool usage="reference"><br>
<name> reference frame </name> <br> <srom_file>C:/Documents and Settings/Arefin/Desktop/IGSTK Software Package/Inputs/mark2.rom</srom_file><br> </tool><br><br></tracking_system><br>
<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Michel Audette, Ph.D. <br>
R & D Engineer, <br>Kitware Inc.,<br>Chapel Hill, N.C. <br><br>