Changeset 10097


Ignore:
Timestamp:
01/11/11 12:40:46 (14 years ago)
Author:
neise
Message:
switching SCLK ON and OFF during acalib-process
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FAD.cc

    r10083 r10097  
    685685        Boards[Brd]->Send(DACCmd, sizeof(DACCmd));
    686686
     687                // Switch off SCLK
     688                Boards[Brd]->Send(CMD_SCLK_OFF);
     689
    687690        // Start accumulation
    688691    Boards[Brd]->AccumulateSum(NumCalibEvents);
     
    706709          for (unsigned int k=0; k<NBins; k++) Boards[Brd]->Baseline[i][j][k] = Boards[Brd]->Sum[i][j][k] / NumCalibEvents;
    707710        }
     711                // Switch on SCLK
     712                Boards[Brd]->Send(CMD_SCLK_ON);
     713
     714
    708715        // Set second DAC value
    709716    DACCmd[1] = htons(50000);
    710717        Boards[Brd]->Send(DACCmd, sizeof(DACCmd));
     718
     719                // Switch off SCLK
     720                Boards[Brd]->Send(CMD_SCLK_OFF);
     721
    711722        // Start accumulation
    712723    Boards[Brd]->AccumulateSum(NumCalibEvents);
     
    722733        }
    723734  }
     735
     736                // Switch on SCLK
     737                Boards[Brd]->Send(CMD_SCLK_ON);
     738
    724739
    725740  // Stop triggering, write back original ROI and DAC settings
Note: See TracChangeset for help on using the changeset viewer.