Ignore:
Timestamp:
01/05/11 14:12:25 (14 years ago)
Author:
ogrimm
Message:
Added amplitude calibration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FADctrl.cc

    r10077 r10080  
    4848  sleep(1);
    4949
    50   DimClient::sendCommand(SERVER_NAME"/Command", "dac 0 21000");
    51   DimClient::sendCommand(SERVER_NAME"/Command", "dac 1 0");
    52   DimClient::sendCommand(SERVER_NAME"/Command", "dac 2-3 5000");
     50  DimClient::sendCommand(SERVER_NAME"/Command", "dac 0 25000");
     51  DimClient::sendCommand(SERVER_NAME"/Command", "dac 1-3 0");
    5352  DimClient::sendCommand(SERVER_NAME"/Command", "dac 4-7 28800");
    5453  sleep (1);
     
    105104
    106105  // Terminate thread for other sockets 
    107   if ((Ret = pthread_cancel(Thread)) != 0) printf("Error: Could not request thread cancellation (%s)\n", strerror(Ret));
    108   if ((Ret = pthread_join(Thread, NULL)) != 0) printf("pthread_join() failed (%s)\n", strerror(Ret));
     106  if ((Ret = pthread_cancel(Thread)) != 0) printf("Error: Could not request thread cancellation in main() (%s)\n", strerror(Ret));
     107  if ((Ret = pthread_join(Thread, NULL)) != 0) printf("pthread_join() failed in main () (%s)\n", strerror(Ret));
    109108}
    110109
     
    169168      if(Ret == 0) printf("OtherSockets: Connection to port %d not existing anymore\n", List[i]);
    170169      else if (Ret == -1) printf("OtherSockets: Error reading from port %d (%s)\n", List[i], strerror(errno));
    171       else printf("OtherSockets: Read %d bytes from port %d\n", Ret, List[i]);
     170      else ;//printf("OtherSockets: Read %d bytes from port %d\n", Ret, List[i]);
    172171    }
    173172  }
Note: See TracChangeset for help on using the changeset viewer.