Changeset 10097
- Timestamp:
- 01/11/11 12:40:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FAD.cc
r10083 r10097 685 685 Boards[Brd]->Send(DACCmd, sizeof(DACCmd)); 686 686 687 // Switch off SCLK 688 Boards[Brd]->Send(CMD_SCLK_OFF); 689 687 690 // Start accumulation 688 691 Boards[Brd]->AccumulateSum(NumCalibEvents); … … 706 709 for (unsigned int k=0; k<NBins; k++) Boards[Brd]->Baseline[i][j][k] = Boards[Brd]->Sum[i][j][k] / NumCalibEvents; 707 710 } 711 // Switch on SCLK 712 Boards[Brd]->Send(CMD_SCLK_ON); 713 714 708 715 // Set second DAC value 709 716 DACCmd[1] = htons(50000); 710 717 Boards[Brd]->Send(DACCmd, sizeof(DACCmd)); 718 719 // Switch off SCLK 720 Boards[Brd]->Send(CMD_SCLK_OFF); 721 711 722 // Start accumulation 712 723 Boards[Brd]->AccumulateSum(NumCalibEvents); … … 722 733 } 723 734 } 735 736 // Switch on SCLK 737 Boards[Brd]->Send(CMD_SCLK_ON); 738 724 739 725 740 // Stop triggering, write back original ROI and DAC settings
Note:
See TracChangeset
for help on using the changeset viewer.