Difference between revisions of "FADC DAQ V2"
From Hall A Wiki
(→Testing FADC with standalone programs) |
(→Simple analysis) |
||
Line 73: | Line 73: | ||
====Simple analysis==== | ====Simple analysis==== | ||
− | Extracts ADC data from printout file | + | :Extracts ADC data from printout file |
> adc_print.sh fadc.dat > adc0.dat | > adc_print.sh fadc.dat > adc0.dat | ||
− | Setup root: | + | :Setup root: |
> setenv ROOTSYS /apps/root/PRO | > setenv ROOTSYS /apps/root/PRO | ||
> setenv PATH /apps/root/PRO/bin:${PATH} | > setenv PATH /apps/root/PRO/bin:${PATH} | ||
− | or | + | :or |
> source setup_root.sh | > source setup_root.sh | ||
− | Plot ADC data in ROOT: | + | :Plot ADC data in ROOT: |
> root | > root | ||
root[] .x adc_read.C("adc0.dat",16) | root[] .x adc_read.C("adc0.dat",16) |
Revision as of 22:30, 13 April 2018
Return to Moller wiki
Contents
Documentation
DAQ V2
FADC Documentation
- Hardware Architecture (pdf presentation)
- Firmware Architecture part1 (pdf)
- Firmware Architecture part2 (pdf)
- Data Format (pdf)
Test FADC V2
SBS DAQ VME computer (Linux, Intel CPU) "sbsvme22" and PC "sbs1" located in TestLab have been used for testing a new FADC V2.
PC computer is used to run CODA.
Original software and library from CODA group are located in /site/coda/contrib/devel/halla_moller/
We have copy of this directory to sbsvme22 computer in "~/git/" directory.
Testing FADC with CODA
- Login to VME CPU (password from Alex or Bob):
> ssh root@sbsvme22
- go to moller fadc directory:
> cd git/halla_moller/
- Start CODA ROC manually
> coda_roc_rc3.5 -name TS1 -type ROC
- Original CODA readout list is: ~/git/halla_moller/fadc/moller_rol/moller_list.c
- CODA readout list with FADC parameters from configuration file is: ~/git/halla_moller/fadc/moller_rol/test_moller_list.c
- To compile readout list:
> cd ~/git/halla_moller/fadc/moller_rol/ > make test_moller_list.so
- Change readout list in database:
> dbedit
- select "sbsfb" database,
- select "MollerFADC" table,
- change readout list in CODE cell,
- exit from dbedit.
- Login to sbs1 computer (password from Alex or Bob):
> ssh adaq@sbs1
- Type in terminal:
> startcoda
- Select session sbsfb1 and configuration MollerFADC
- CODA file stored to directory: ~adaq/data/moller_NN.dat
- Configuration file with FADC parameters is located in:
sbsvme22:~/git/halla_moller/fadc/moller_rol/config_1.fadc
Testing FADC with standalone programs
- Login to VME CPU:
> ssh root@sbsvme22
- go to moller fadc test directory:
> cd git/halla_moller/fadc/mytest
- FADC can be tested with external signals on inputs ("mode"=0), and with interrnal user defined waveform (PlayBack mode "mode">0).
- In PlayBack mode waveforms is defined in configuration file, see file:
- ~/git/halla_moller/fadc/mytest/config_1.fadc
- start readout program:
> ./famFadcTest <config_file_name> <mode> <adc_printout> config_file_name - name of file with FADC parametes mode - FADC run mode, mode=0 external signals; mode>0 - playback (number triggers=mode) (overrides 'mode' from config file) adc_printout >0 print out adc data block; =0 - no printout adc data block
- Examples:
- load FADC parrameters from file "config_1.fadc", external inputs, print adc data block:
> ./famFadcTest config_1.fadc 0 1
- redirection of printout to file for analysis:
> ./famFadcTest config_1.fadc 0 1 > fadc.dat
Simple analysis
- Extracts ADC data from printout file
> adc_print.sh fadc.dat > adc0.dat
- Setup root:
> setenv ROOTSYS /apps/root/PRO > setenv PATH /apps/root/PRO/bin:${PATH}
- or
> source setup_root.sh
- Plot ADC data in ROOT:
> root root[] .x adc_read.C("adc0.dat",16)