Changeset 31


Ignore:
Timestamp:
04/03/09 13:06:17 (16 years ago)
Author:
ogrimm
Message:
Data transmission over socket contains now frequency and scale factor
Location:
drsdaq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • drsdaq/DAQReadout.cc

    r27 r31  
    617617  }
    618618  PrintMessage("Waveform from board %d, chip %d, channel %d\n",board,chip,channel);
    619   PrintMessage("Note: The first number is the number of numbers that follows.\n");
    620 
    621619  ReadCalibratedDRSData();
    622620 
    623621  // Note that all numbers must be separated by exactly one whitespace
    624   // to allow reading from client socket 
    625   PrintMessage("==START== %d ",kNumberOfBins);
     622  // to allow reading from client socket
     623  // The first number is the number of numbers that follow, the second number
     624  // is the sampling frequency in GHz and the third is the conversion factor.
     625  PrintMessage("==START== %d %.2f %.2f ",kNumberOfBins+2,DRSFreq[board],drs->GetBoard(board)->GetPrecision());
    626626  for (int k=0; k<kNumberOfBins; k++) PrintMessage("%.1f ", (float) WaveForm[board][chip][channel][k]);
    627627  PrintMessage("==END==");
  • drsdaq/History.txt

    r28 r31  
    1212            on ihp-pc26 (newer version of g++ than on eth-vme02)
    13132/4/2009    Intoduced check for magic number in RawDataCTX.cc
     143/4/2009    Added frequency and scale factor transmission to socket protocol
Note: See TracChangeset for help on using the changeset viewer.