Changeset 72 for hvcontrol/src
- Timestamp:
- 06/19/09 17:00:53 (16 years ago)
- Location:
- hvcontrol/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.