Changeset 80 for hvcontrol/src/HVConfig.cc
- Timestamp:
- 07/01/09 20:47:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hvcontrol/src/HVConfig.cc
r46 r80 33 33 } 34 34 35 TestMode = false; 35 36 NumHVBoards = 0; 36 37 FileName = configfile; … … 81 82 } 82 83 83 ReadCard("LogPath", fLogPath, 's',f);84 ReadCard("LogPath", fLogPath, 's',f); 84 85 85 86 ReadCard("PixMapTable",fPixMapTable,'s',f); 87 88 ReadCard("TestMode", &str, 's',f); 89 if (!strcmp(str,"TRUE")) 90 TestMode = true; 91 86 92 87 93 for (int i=0;i<MAX_NUM_HVBOARDS;i++) { … … 124 130 fprintf(fptr," Log path: %s\n\n", fLogPath); 125 131 fprintf(fptr," Pixel map table: %s\n\n", fPixMapTable); 132 fprintf(fptr," Test mode: %s\n\n", TestMode ? "yes" : "no"); 126 133 fprintf(fptr," %.2d USB devices:\n\n", NumHVBoards); 127 134 … … 178 185 fprintf(f,"PixMapTable %s\n\n", fPixMapTable); 179 186 187 fprintf(f,"TestMode %s #Test Mode: if no HV boards are connected, the test mode can be used.",((TestMode) ? "TRUE" : "FALSE")); 188 180 189 fprintf(f,"TimeOut %.2f s # Timeout to return from read (%.2f,...%.2f) s\n\n",fTimeOut,MIN_TIMEOUT,MAX_TIMEOUT); 181 190
Note:
See TracChangeset
for help on using the changeset viewer.