Difference between revisions of "FADC DAQ V2"
From Hall A Wiki
(→Test FADC V2) |
(→Test FADC V2) |
||
Line 17: | Line 17: | ||
==Test FADC V2== | ==Test FADC V2== | ||
− | SBS DAQ VME | + | SBS DAQ VME computer (Linux, Intel CPU) "sbsvme22" and PC "sbs1" located in TestLab have been used for testing a new FADC V2.<br> |
PC computer is used to run CODA.<br> | PC computer is used to run CODA.<br> | ||
Original software and library from CODA group are located in '''/site/coda/contrib/devel/halla_moller/'''<br> | Original software and library from CODA group are located in '''/site/coda/contrib/devel/halla_moller/'''<br> | ||
We have copy of this directory to sbsvme22 computer in "~/git/" directory. | We have copy of this directory to sbsvme22 computer in "~/git/" directory. | ||
− | *Testing FADC with CODA | + | *'''Testing FADC with CODA''' |
:Login to VME CPU (password from Alex or Bob): | :Login to VME CPU (password from Alex or Bob): | ||
> ssh root@sbsvme22 | > ssh root@sbsvme22 | ||
Line 29: | Line 29: | ||
:Start CODA ROC manually | :Start CODA ROC manually | ||
> coda_roc_rc3.5 -name TS1 -type ROC | > 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): | :Login to sbs1 computer (password from Alex or Bob): | ||
Line 34: | Line 46: | ||
:Type in terminal: | :Type in terminal: | ||
> startcoda | > startcoda | ||
− | :Select session '''sbsfb1''' and configuration '''MollerFADC''' | + | ::Select session '''sbsfb1''' and configuration '''MollerFADC''' |
− | :CODA file stored to directory: ''~adaq/data/moller_NN.dat'' | + | ::CODA file stored to directory: ''~adaq/data/moller_NN.dat'' |
− | :Configuration file with FADC parameters is located in: | + | ::Configuration file with FADC parameters is located in: |
''sbsvme22:~/git/halla_moller/fadc/moller_rol/config_1.fadc'' | ''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 | ||
+ | : |
Revision as of 22:24, 13 April 2018
Return to Moller wiki
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