Changeset 72 for hvcontrol/src


Ignore:
Timestamp:
06/19/09 17:00:53 (16 years ago)
Author:
lstark
Message:
relative path
Location:
hvcontrol/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hvcontrol/src/ConsoleCommand.cc

    r14 r72  
    3030
    3131    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);
    3434    /*
    3535    if (strlen(m->status->Pc) < 2 )  // Ignore commands with only '\n'
  • hvcontrol/src/ProcessIO.cc

    r46 r72  
    2727 
    2828  pm = new PixelMap(config->fPixMapTable);
    29   printf("PixMapTable = %s. \n",config->fPixMapTable);
    3029
    3130  // Initialize status structure (HVStatus.cc/h)
     
    341340      }
    342341
    343 
    344342      StopMonitor();
    345      
     343
    346344     
    347345      for (int i=status->FirstBoard;i<=status->LastBoard;i++) {
     
    520518      }
    521519
     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
    522529      //Convert from HV to DAC values
    523530      if (!(config->IsDAC)){
    524531        hvoltageV = status->HVV[board][chain][channel]+hvdiffV;
    525532        status->HVV[board][chain][channel] = hvoltageV;
    526         printf("hv+diff = %f .\n",hvoltageV);
     533        //      printf("hv+diff = %f .\n",hvoltageV);
    527534        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);
    530537      }
    531538      StopMonitor();
     
    545552       
    546553        status->HV[board][chain][channel]=hvoltage;
    547         printf("dac hv rampingup= %d .\n",hvoltage);
     554        //      printf("dac hv rampingup= %d .\n",hvoltage);
    548555        if ((hv->GetHVBoard(board))->SetHV(stdout,chain,channel,hvoltage,rbuf,status->Verbose)==1) {
    549556          UpdateStatus(board,rbuf);
Note: See TracChangeset for help on using the changeset viewer.