Ignore:
Timestamp:
07/01/09 20:47:49 (15 years ago)
Author:
lstark
Message:
feedback through socket and test mode implemented
File:
1 edited

Legend:

Unmodified
Added
Removed
  • hvcontrol/src/HVConfig.cc

    r46 r80  
    3333  }
    3434
     35  TestMode           = false;
    3536  NumHVBoards        = 0;
    3637  FileName           = configfile;
     
    8182  }
    8283 
    83   ReadCard("LogPath",    fLogPath,'s',f);
     84  ReadCard("LogPath",    fLogPath,    's',f);
    8485
    8586  ReadCard("PixMapTable",fPixMapTable,'s',f);
     87
     88  ReadCard("TestMode",   &str,        's',f);
     89  if (!strcmp(str,"TRUE"))
     90    TestMode = true;
     91
    8692
    8793  for (int i=0;i<MAX_NUM_HVBOARDS;i++) {
     
    124130  fprintf(fptr," Log path:          %s\n\n", fLogPath);
    125131  fprintf(fptr," Pixel map table:   %s\n\n", fPixMapTable);
     132  fprintf(fptr," Test mode:         %s\n\n", TestMode ? "yes" : "no");
    126133  fprintf(fptr," %.2d USB devices:\n\n", NumHVBoards);
    127134 
     
    178185  fprintf(f,"PixMapTable        %s\n\n",   fPixMapTable);
    179186
     187  fprintf(f,"TestMode           %s       #Test Mode: if no HV boards are connected, the test mode can be used.",((TestMode) ? "TRUE" : "FALSE"));
     188
    180189  fprintf(f,"TimeOut            %.2f s   # Timeout to return from read (%.2f,...%.2f) s\n\n",fTimeOut,MIN_TIMEOUT,MAX_TIMEOUT);
    181190
Note: See TracChangeset for help on using the changeset viewer.