Changeset 72 for hvcontrol


Ignore:
Timestamp:
06/19/09 17:00:53 (15 years ago)
Author:
lstark
Message:
relative path
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 05 22, 15:16:02
     1# Main configuration file for the HV control program V1.0, 2009 06 17, 15:50:39
    22# Note: this file will be updated at program exit
    33
    4 LogPath            /home/lstark/hvcontrol/log/
     4LogPath            ../hvcontrol/log/
    55
    66PixMapTable        ../config/PixelMap.txt
  • hvcontrol/Makefile

    r46 r72  
    11#
    2 #  Makefile example
     2#  Makefile hvcontrol
    33#
    44
  • hvcontrol/hvcontrol.cpp

    r35 r72  
    1111  Created by:   Sebastian Commichau, November 2008
    1212                commichau@phys.ethz.ch
     13  Updated by:   Sabrina Stark, June 2008
     14                sabrina.stark@phys.ethz.ch
    1315
    1416\**************************************************************/
     
    9092 
    9193  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__);
    9395
    9496
    9597  // Construct main instance
    9698  ProcessIO pio(config_file);
    97   
    98   // Install signal handler and set signal SIGUSR1 to interrupt blocking system calls
     99 
     100 // Install signal handler and set signal SIGUSR1 to interrupt blocking system calls
    99101  signal(SIGUSR1, &SignalHandler);
    100102  siginterrupt (SIGUSR1, true);
  • 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.