Rev 2181 Rev 2182
Line 56... Line 56...
56 MRange=TDC_MRANGE1; 56 MRange=TDC_MRANGE1;
57 hit1=TDC_MRANGE1_HIT1_NOAC; 57 hit1=TDC_MRANGE1_HIT1_NOAC;
58 hit2=TDC_MRANGE1_HIT2_NOAC; 58 hit2=TDC_MRANGE1_HIT2_NOAC;
59   59  
60   60  
-   61 // hitin2=TDC_HITIN2_1;
-   62 // hitin1=TDC_HITIN1_1;
-   63  
61 delval1=0x0; 64 delval1=0x0;
62 delval2=0x0; 65 delval2=0x0;
63 delval3=0x0; 66 delval3=0x0;
64   67  
65 switch(hits2) // sets number of hits on channel 1 68 switch(hits2) // sets number of hits on channel 1
Line 253... Line 256...
253 while(TRUE) 256 while(TRUE)
254 { 257 {
255 printf("$TDC%s->", VERSION); // print prompt 258 printf("$TDC%s->", VERSION); // print prompt
256 get_command(command, 20); // receive command from terminal 259 get_command(command, 20); // receive command from terminal
257 printf("%s\r\n", command); // echo received command 260 printf("%s\r\n", command); // echo received command
258 261  
259 strcpy(tmp,"TM"); 262 strcpy(tmp,"TM");
260 if (!strncmp(command, tmp, 2)) temperature_measurement(); 263 if (!strncmp(command, tmp, 2)) temperature_measurement();
261   264  
262 strcpy(tmp,"M2 "); 265 strcpy(tmp,"M2 ");
263 if (!strncmp(command, tmp, 3)) 266 if (!strncmp(command, tmp, 3))