]> jspc29.x-matter.uni-frankfurt.de Git - mvdsensorcontrol.git/commitdiff
parsing of setup xml files: renamed node <readoutsystem> to <system> to reduce ambiguity
authorwww@jspc55 <www@jspc55>
Mon, 30 Jun 2014 11:39:14 +0000 (13:39 +0200)
committerwww@jspc55 <www@jspc55>
Mon, 30 Jun 2014 11:39:14 +0000 (13:39 +0200)
tools/run.pl
tools/testgui.pl

index 42d1e2f745be726fd85bb49e920c8fe95df8c09c..a1f6b4c158d76b8aaf174328bf1372a8494e82ca 100755 (executable)
@@ -30,7 +30,7 @@ if( $q->param('runtime') ) {
 #print "Loading detector setup from $setupFile\n";
 my $parser = XML::LibXML->new(line_numbers => 1);
 my $db = $parser->parse_file($setupFile);
-my $systemName = $db->findvalue("/DetectorSetup/readoutsystem/\@name");
+my $systemName = $db->findvalue("/DetectorSetup/system/\@name");
 #print "Loading system description from $systemName\n";
 my $systemFile = SYSTEMDIR."/".$systemName.".xml";
 $db = $parser->parse_file($systemFile);
index cc82c780e6f67c330ab026db317756e1c9c78355..89f2ae04bb90869e1c234cff5ae0d52992098880 100755 (executable)
@@ -237,7 +237,7 @@ sub print_setupStructure {
   unless(defined($setup)) { die "did not find DetectorSetup node in setup file!\n";}
   my $setupDesc = $setup->findvalue("./description");
   my $setupName = $setup->findvalue("./\@name");
-     $systemName = $setup->findvalue("/DetectorSetup/readoutsystem/\@name");
+     $systemName = $setup->findvalue("/DetectorSetup/system/\@name");
   print h2("Setup: $setupName");
   print "<p>description: $setupDesc</p>";