Changeset 72
- Timestamp:
- 06/19/09 17:00:53 (15 years ago)
- Location:
- hvcontrol
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
hvcontrol/HV.conf
r46 r72 1 # Main configuration file for the HV control program V1.0, 2009 0 5 22, 15:16:021 # Main configuration file for the HV control program V1.0, 2009 06 17, 15:50:39 2 2 # Note: this file will be updated at program exit 3 3 4 LogPath /home/lstark/hvcontrol/log/4 LogPath ../hvcontrol/log/ 5 5 6 6 PixMapTable ../config/PixelMap.txt -
hvcontrol/Makefile
r46 r72 1 1 # 2 # Makefile example2 # Makefile hvcontrol 3 3 # 4 4 -
hvcontrol/hvcontrol.cpp
r35 r72 11 11 Created by: Sebastian Commichau, November 2008 12 12 commichau@phys.ethz.ch 13 Updated by: Sabrina Stark, June 2008 14 sabrina.stark@phys.ethz.ch 13 15 14 16 \**************************************************************/ … … 90 92 91 93 system("clear"); 92 printf("\n****************** HV Control %s built %s, %s by S. Commichau ******************\n\n",HV_CONTROL_VERSION,__DATE__,__TIME__);94 printf("\n****************** HV Control %s built %s, %s by S. Commichau, updated by S. Stark ******************\n\n",HV_CONTROL_VERSION,__DATE__,__TIME__); 93 95 94 96 95 97 // Construct main instance 96 98 ProcessIO pio(config_file); 97 98 99 100 // Install signal handler and set signal SIGUSR1 to interrupt blocking system calls 99 101 signal(SIGUSR1, &SignalHandler); 100 102 siginterrupt (SIGUSR1, true); -
hvcontrol/src/ConsoleCommand.cc
r14 r72 30 30 31 31 m->status->Pc = comline; 32 sprintf(str,"Test in ConsoleCommand: %s",m->status->Pc);33 printf(str);32 // sprintf(str,"Test in ConsoleCommand: %s",m->status->Pc); 33 // printf(str); 34 34 /* 35 35 if (strlen(m->status->Pc) < 2 ) // Ignore commands with only '\n' -
hvcontrol/src/ProcessIO.cc
r46 r72 27 27 28 28 pm = new PixelMap(config->fPixMapTable); 29 printf("PixMapTable = %s. \n",config->fPixMapTable);30 29 31 30 // Initialize status structure (HVStatus.cc/h) … … 341 340 } 342 341 343 344 342 StopMonitor(); 345 343 346 344 347 345 for (int i=status->FirstBoard;i<=status->LastBoard;i++) { … … 520 518 } 521 519 520 sprintf(str,"Error - Test \n"); 521 DoPrompt(str); 522 if (status->Socket != -1) // Print status string to socket if open 523 write(status->Socket,str,strlen(str)+1); 524 sPrintStatus(status,str,0); // Print status only to socket 525 526 527 528 522 529 //Convert from HV to DAC values 523 530 if (!(config->IsDAC)){ 524 531 hvoltageV = status->HVV[board][chain][channel]+hvdiffV; 525 532 status->HVV[board][chain][channel] = hvoltageV; 526 printf("hv+diff = %f .\n",hvoltageV);533 // printf("hv+diff = %f .\n",hvoltageV); 527 534 hvdiff = calib->HVToDAC(hvoltageV,board,chain,channel) - status->HV[board][chain][channel]; 528 printf("dac new = %d, dac old = %d.\n",calib->HVToDAC(hvoltageV,board,chain,channel),status->HV[board][chain][channel]);529 printf("dac diff = %d .\n",hvdiff);535 // printf("dac new = %d, dac old = %d.\n",calib->HVToDAC(hvoltageV,board,chain,channel),status->HV[board][chain][channel]); 536 // printf("dac diff = %d .\n",hvdiff); 530 537 } 531 538 StopMonitor(); … … 545 552 546 553 status->HV[board][chain][channel]=hvoltage; 547 printf("dac hv rampingup= %d .\n",hvoltage);554 // printf("dac hv rampingup= %d .\n",hvoltage); 548 555 if ((hv->GetHVBoard(board))->SetHV(stdout,chain,channel,hvoltage,rbuf,status->Verbose)==1) { 549 556 UpdateStatus(board,rbuf);
Note:
See TracChangeset
for help on using the changeset viewer.